{"id":224,"date":"2017-07-09T00:06:37","date_gmt":"2017-07-09T00:06:37","guid":{"rendered":"http:\/\/orissawebhosting.in\/blog\/?p=224"},"modified":"2019-07-19T04:20:29","modified_gmt":"2019-07-19T04:20:29","slug":"how-to-deny-ip-addresses-in-wordpress","status":"publish","type":"post","link":"https:\/\/orissawebhosting.in\/blog\/how-to-deny-ip-addresses-in-wordpress\/","title":{"rendered":"How to Deny IP Addresses in WordPress"},"content":{"rendered":"<p><strong>How to Block IP Addresses in WordPress.<\/strong><\/p>\n<p>Each computer connected to the internet has an IP address assigned by their internet service provider.<\/p>\n<p><strong>Step 1<\/strong> &#8211; To blocking an IP address from accessing your website with unwanted visitors, spam comments , email spam,\u00a0hacking attempts, and DDOS (denial of service) attacks.<\/p>\n<p><a href=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-228 size-large\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip1-1024x360.png\" alt=\"\" width=\"640\" height=\"225\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip1-1024x360.png 1024w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip1-300x105.png 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip1-768x270.png 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip1.png 1357w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><strong>Step 2<\/strong> &#8211; If you feel this is a spam comment, please login to your cpanel and verify the server log by using below steps<\/p>\n<p><a href=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-229 size-medium\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip2-300x117.png\" alt=\"\" width=\"300\" height=\"117\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip2-300x117.png 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip2.png 486w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Step 3<\/strong> &#8211; Inside the Raw access you will have the zip file, download the file and extract and open in notepad\/ notepad++.\u00a0The access log file contains raw data of all requests made to your website. Each line begins with the IP address making that request.<\/p>\n<p><a href=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-230 size-large\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip3-1024x318.png\" alt=\"\" width=\"640\" height=\"199\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip3-1024x318.png 1024w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip3-300x93.png 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip3-768x239.png 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip3.png 1258w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><strong>Step 4<\/strong> &#8211; Once you have found those IP addresses which is involving the unwanted activities , do filter the addresses. \u00a0 Once done, do paste the IP in <strong>wordpress &gt;&gt; \u00a0Settings &gt;&gt; Discussion\u00a0<\/strong>and choose the &#8220;Comment Blacklist\u2019 and IP in that text box.<\/p>\n<p><a href=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-231 size-large\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip4-1024x464.png\" alt=\"\" width=\"640\" height=\"290\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip4-1024x464.png 1024w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip4-300x136.png 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip4-768x348.png 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/ip4.png 1354w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><strong>Step 5<\/strong> &#8211; \u00a0Now WordPress will block user with these IP addresses from leaving a comment on your website. These user will be able to visit your website, but they will get an error message when they try to submit a comment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Block IP Addresses in WordPress. Each computer connected to the internet has an IP address assigned by their internet service provider. Step 1 &#8211; To blocking an IP address from accessing your website with unwanted visitors, spam comments , email spam,\u00a0hacking attempts, and DDOS (denial of service) attacks. Step 2 &#8211; If you feel this is a spam comment, please login to your cpanel and verify the server log by using below steps Step 3 &#8211; Inside the Raw access you will have the zip file, download the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/224"}],"collection":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=224"}],"version-history":[{"count":8,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":1106,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/224\/revisions\/1106"}],"wp:attachment":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}