{"id":626,"date":"2018-08-01T07:00:20","date_gmt":"2018-08-01T12:00:20","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=626"},"modified":"2020-08-02T11:53:08","modified_gmt":"2020-08-02T16:53:08","slug":"how-to-block-ip-addresses-in-wordpress","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/","title":{"rendered":"How to Block IP Addresses in WordPress"},"content":{"rendered":"<div id=\"linux-4151845676\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p><span style=\"font-weight: 400;\">In this guide, we will show you various ways to prevent certain brute force attacks on a WordPress site by blocking offending IP addresses. According to <a href=\"https:\/\/www.wordfence.com\/blog\/2017\/11\/october-2017-wordpress-attack-report\/\">Wordfence report<\/a><\/span><span style=\"font-weight: 400;\">\u00a0that a number of WordPress attacks have consistently been increasing from different IPs with an average of 4,000 attacks per day as of October 2017. The popularity of WordPress is one of the reasons it\u2019s been on the top list of attacks to CMS (Content Management Systems). <\/span><\/p>\n<p><!--more--><\/p>\n<p><span style=\"font-weight: 400;\">In this article, we will configure a WordPress site to block these attacks. It\u2019s important to note that there are varied ways an attacker can initiate the malicious activity ranging from simple scanning of the website to more advanced exploitation techniques. Our goal is to block IP addresses that are failing login attempts to the site and the ability to manually add IP address to be blocked.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">What is an IP address?<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">In a network, computers or devices communicate and identify themselves by a numerical format like for example 172.31.100.16 which is 4 dotted decimal notation. Each field separated by a period and can be between 0 &#8211; 255. IP stands for Internet Protocol which is one of the many protocols the Internet is made of. However, we don\u2019t have to explain in much detail about the IP address but you can check out Wikipedia\u2019s article for more info about IP address &#8211; <\/span><a href=\"https:\/\/en.wikipedia.org\/wiki\/IP_address\"><span style=\"font-weight: 400;\">https:\/\/en.wikipedia.org\/wiki\/IP_address<\/span><\/a><span style=\"font-weight: 400;\">. Just remember that each request that hits your website.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">IP Address Blocking using a Plugin<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">There are a lot of WordPress plugins available to choose from that can address our need. In this case, we\u2019ll use Wordfence Security plugin &#8211; <\/span><a href=\"https:\/\/wordpress.org\/plugins\/wordfence\/\"><span style=\"font-weight: 400;\">https:\/\/wordpress.org\/plugins\/wordfence\/<\/span><\/a><span style=\"font-weight: 400;\">.<img decoding=\"async\" class=\"aligncenter size-full wp-image-628\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/07\/Block-IP-Addresses-in-WordPress.jpg\" alt=\"Block IP Addresses in WordPress\" width=\"400\" height=\"73\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/07\/Block-IP-Addresses-in-WordPress.jpg 400w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/07\/Block-IP-Addresses-in-WordPress-300x55.jpg 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/span><\/p>\n<p><span style=\"font-weight: 400;\">Wordfence is more than just a Firewall but also includes basic malware scanning that helps you find malicious files and the ability to remove them from your site. However, the more in-depth malware scanning is only available in premium version. In this guide, we will use the free version of Wordfence which will be enough to achieve our goal &#8211; to block IP addresses.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Installing Wordfence Plugin<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">To install the plugin, login into your WordPress admin dashboard and head to Plugins section. On the search bar, search for Wordfence. Once installed, you would be to see Wordfence in one the sidebar menus:<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-629\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/07\/Blocking-IP-Addresses-in-WordPress.jpg\" alt=\"Blocking IP Addresses in WordPress\" width=\"99\" height=\"300\" \/><\/p>\n<p><span style=\"font-weight: 400;\">At this point, you can now block specific IPs by going into Wordfence &gt; Firewall &gt; Select Blocking tab, click on IP Address under Block Type, put the IP address and the reason for blocking this IP.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-630\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/07\/Block-an-IP-Addresses-in-WordPress.jpg\" alt=\"Block an IP Addresses in WordPress\" width=\"500\" height=\"216\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/07\/Block-an-IP-Addresses-in-WordPress.jpg 500w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/07\/Block-an-IP-Addresses-in-WordPress-300x130.jpg 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The process described here is to manually block the IP that you have known to block. The Premium version takes this step even further by monitoring in real-time known malicious IP addresses and automatically blocks those IPs without taking action on your part. However, the basic free version is enough in most cases.<\/p>\n<p>Using some sort of security plugin like Wordfence to do the work of protecting\u00a0 the site can most likely introduce performance issues. This especially true if you have several plugins installed alongside Wordfence. Although, this can vary from one site to another and depending on the amount of system resources your server hosting the site. To put it in perspective, it is way better to have at least one security plugin than no security at all.<\/p>\n<h3>Block IP using htaccess<\/h3>\n<p>Another way of blocking IP address is through .htaccess file. Yes, there is a dot in the first character of the filename. This is because .htaccess file is a hidden file in Linux and Linux assumes all files or directories with a period or dot as the first character as hidden files or directories.\u00a0 WordPress uses this file to manipulate how Apache serves files from its root directory, and subdirectories thereof.\u00a0The .htaccess file can be used to alter the configuration of the Apache Web Server software to enable\/disable additional functionalities.<\/p>\n<p>To start blocking IPs, we will now create an empty .htaccess file. In order for Apache to read this file, the location of this file must be on the path where the web root is located. Typically, using control panel such as cPanel this is located in <em>\/home\/&lt;cpanel_user&gt;\/public_html<\/em> directory.<\/p>\n<p>You can create a .htaccess file using any text editor such as Notepad, Sublime, TextPad or command line editors like vim or nano. The .htaccess file may already exist either by during installation or generated by a plugin. In most Wordpres\u00a0 sites, the content of .htaccess file may contain basic configuration as shown below:<\/p>\n<pre># BEGIN WordPress\r\n&lt;IfModule mod_rewrite.c&gt;\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^index\\.php$ - [L]\r\nRewriteCond\u00a0%{REQUEST_FILENAME}\u00a0!-f\r\nRewriteCond\u00a0%{REQUEST_FILENAME}\u00a0!-d\r\nRewriteRule . \/index.php [L]\r\n&lt;\/IfModule&gt;\r\n# END WordPress<\/pre>\n<p>The directives above are to make links posts and pages on WordPres site work. Without the appropriate directives, you may likely encounter page not found error or 404 error.<\/p>\n<p>The syntax or format to block IP in .htaccess file is very straightforward and simple. It does not require you to be an expert programmer to be able to do this. You can add the directive on top of the .htaccess file like the following:<\/p>\n<p>This directive will deny all access, regardless of an IP address including your IP.<\/p>\n<pre>deny from all<\/pre>\n<p>Or block the specific IP address<\/p>\n<pre>deny from 123.45.67.89<\/pre>\n<p>You can also block access from all except from certain IP addresses. This can be useful in situations where you want the site to be accessible only to specific IPs.<\/p>\n<pre>order allow,deny\r\nallow from 172.16.32.156\r\nallow from 136.47.111.2\r\ndeny from all<\/pre>\n<p>The above directives tells the Apache Web Server to deny access from all IPs except from 172.16.32.156 and 136.47.111.2. You can add any number of allow or deny lines for each IP. Visitors who&#8217;s IP is blocked will see the message:<\/p>\n<pre>'403 Forbidden'<\/pre>\n<p>You can modify the message above but it is beyond the scope of this article.<\/p>\n<p>That&#8217;s it.<\/p>\n<p>You should have an idea by now whether to choose using a plugin or by using .htaccess file to restrict IP addresses on your WordPress site.<\/p>\n<hr \/>\n<p>Of course you don\u2019t have to do any of this, if you use one of our <a href=\"https:\/\/linuxhostsupport.com\">Linux server management services<\/a>, in which case you can simply ask our expert Linux admins to\u00a0do this for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post,\u00a0 please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p><div id=\"linux-407805255\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we will show you various ways to prevent certain brute force attacks on a WordPress site by blocking offending IP addresses. According to Wordfence report\u00a0that a number of WordPress attacks have consistently been increasing from different IPs with an average of 4,000 attacks per day as of October 2017. The popularity of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":631,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[112,3],"class_list":["post-626","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-block-ip","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Block IP Addresses in WordPress | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"In this guide, we will show you various ways to prevent certain brute force attacks on a Wordpress site by blocking offending IP addresses. According to\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Block IP Addresses in WordPress | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"In this guide, we will show you various ways to prevent certain brute force attacks on a Wordpress site by blocking offending IP addresses. According to\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-01T12:00:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-02T16:53:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/07\/How-to-Block-IP-Addresses-in-WordPress.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-block-ip-addresses-in-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-block-ip-addresses-in-wordpress\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Block IP Addresses in WordPress\",\"datePublished\":\"2018-08-01T12:00:20+00:00\",\"dateModified\":\"2020-08-02T16:53:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-block-ip-addresses-in-wordpress\\\/\"},\"wordCount\":1044,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-block-ip-addresses-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/How-to-Block-IP-Addresses-in-WordPress.jpg\",\"keywords\":[\"block ip\",\"wordpress\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-block-ip-addresses-in-wordpress\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-block-ip-addresses-in-wordpress\\\/\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-block-ip-addresses-in-wordpress\\\/\",\"name\":\"How to Block IP Addresses in WordPress | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-block-ip-addresses-in-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-block-ip-addresses-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/How-to-Block-IP-Addresses-in-WordPress.jpg\",\"datePublished\":\"2018-08-01T12:00:20+00:00\",\"dateModified\":\"2020-08-02T16:53:08+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"In this guide, we will show you various ways to prevent certain brute force attacks on a Wordpress site by blocking offending IP addresses. According to\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-block-ip-addresses-in-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-block-ip-addresses-in-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-block-ip-addresses-in-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/How-to-Block-IP-Addresses-in-WordPress.jpg\",\"contentUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/How-to-Block-IP-Addresses-in-WordPress.jpg\",\"width\":750,\"height\":410,\"caption\":\"How to Block IP Addresses in WordPress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-block-ip-addresses-in-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Block IP Addresses in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Block IP Addresses in WordPress | LinuxHostSupport","description":"In this guide, we will show you various ways to prevent certain brute force attacks on a Wordpress site by blocking offending IP addresses. According to","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to Block IP Addresses in WordPress | LinuxHostSupport","og_description":"In this guide, we will show you various ways to prevent certain brute force attacks on a Wordpress site by blocking offending IP addresses. According to","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2018-08-01T12:00:20+00:00","article_modified_time":"2020-08-02T16:53:08+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/07\/How-to-Block-IP-Addresses-in-WordPress.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Block IP Addresses in WordPress","datePublished":"2018-08-01T12:00:20+00:00","dateModified":"2020-08-02T16:53:08+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/"},"wordCount":1044,"commentCount":1,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/07\/How-to-Block-IP-Addresses-in-WordPress.jpg","keywords":["block ip","wordpress"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/","name":"How to Block IP Addresses in WordPress | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/07\/How-to-Block-IP-Addresses-in-WordPress.jpg","datePublished":"2018-08-01T12:00:20+00:00","dateModified":"2020-08-02T16:53:08+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"In this guide, we will show you various ways to prevent certain brute force attacks on a Wordpress site by blocking offending IP addresses. According to","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/07\/How-to-Block-IP-Addresses-in-WordPress.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2018\/07\/How-to-Block-IP-Addresses-in-WordPress.jpg","width":750,"height":410,"caption":"How to Block IP Addresses in WordPress"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-block-ip-addresses-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Block IP Addresses in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=626"}],"version-history":[{"count":4,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/626\/revisions"}],"predecessor-version":[{"id":1718,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/626\/revisions\/1718"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/631"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}