{"id":1413,"date":"2021-02-25T13:27:54","date_gmt":"2021-02-25T13:27:54","guid":{"rendered":"https:\/\/ccbill.com\/kb\/?p=1413"},"modified":"2023-03-07T11:38:48","modified_gmt":"2023-03-07T11:38:48","slug":"magento-block-ip","status":"publish","type":"post","link":"https:\/\/ccbill.com\/kb\/magento-block-ip","title":{"rendered":"How To Block an IP Address in Magento"},"content":{"rendered":"\n<p class=\"h3\">Introduction<\/p>\n\n\n\n<p>Ecommerce shop owners need to act quickly and decisively once they detect suspicious usage patterns on their website. The ability to block IP addresses is essential for <a href=\"https:\/\/ccbill.com\/blog\/ecommerce-fraud-trends\" target=\"_blank\" rel=\"noreferrer noopener\">preventing fraud<\/a> and abusive behavior in your Magento store.<\/p>\n\n\n\n<p><a href=\"https:\/\/ccbill.com\/industries\/high-risk-business\">Merchants with high-risk business models<\/a> can control the level of exposure by blocking IP ranges, regions, and entire countries. <\/p>\n\n\n\n<p>Learn <strong>how to block IP addresses in Magento<\/strong> and protect your store from malicious activity.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"400\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento.png\" alt=\"Using Magento to block IPs an malicious activity.\" class=\"wp-image-1417\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento-300x150.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento-768x384.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">5 Simple Ways to Block IPs in Magento<\/h2>\n\n\n\n<p>There are several ways to block an IP in <a href=\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux\" target=\"_blank\" rel=\"noreferrer noopener\">Magento<\/a>. You can block IPs at the server level, utilize firewalls, or install additional Magento modules. The five most common and user-friendly methods include:<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\">\n<li>Editing the <em>.htaccess<\/em> file to block or whitelist IPs.<\/li>\n\n\n\n<li>Restrict IPs using a web hosting control panel (cPanel\u2019s IP Blocker).<\/li>\n\n\n\n<li>Install a Magento extension.<\/li>\n\n\n\n<li>Block IPs using the <em>index.php<\/em> file.<\/li>\n\n\n\n<li>Asking the payment processor to block payments from specific IPs.<\/li>\n<\/ul>\n\n\n\n<p>Use one or combine several methods to prevent individual IPs (users) or IP ranges from making payments or accessing certain areas of your website.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Edit .htaccess File to Block IPs<\/h3>\n\n\n\n<p>The <a href=\"https:\/\/phoenixnap.com\/kb\/how-to-set-up-enable-htaccess-apache\" target=\"_blank\" rel=\"noreferrer noopener\"><em>.htaccess<\/em> file<\/a> controls access, redirects traffic, and manages security settings on your website. The rules within the file can affect the entire website. Always back up the <em>.htaccess<\/em> file before attempting to edit its contents.<\/p>\n\n\n\n<p>1. To block an IP address, <a href=\"https:\/\/ccbill.com\/kb\/magento-ftp\" target=\"_blank\" rel=\"noreferrer noopener\">access your server using an FTP client<\/a> or a web hosting control panel. The examples in this article are presented using <strong>cPanel<\/strong>. <\/p>\n\n\n\n<p>2. Select the <strong>.htaccess<\/strong> file and click <strong>Edit<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"387\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/htaccess-file-magento-ip-block-1.png\" alt=\"Locate and edit .htaccess file using cPanel.\" class=\"wp-image-1457\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/htaccess-file-magento-ip-block-1.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/htaccess-file-magento-ip-block-1-300x145.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/htaccess-file-magento-ip-block-1-768x372.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>3. If you cannot locate the file, click <strong>Settings<\/strong> and enable the <strong>Show Hidden Files<\/strong> option.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"418\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/show-hidden-htaccess-file-magento-block-ip-1.png\" alt=\"Show hidden files in cPanel.\" class=\"wp-image-1452\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/show-hidden-htaccess-file-magento-block-ip-1.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/show-hidden-htaccess-file-magento-block-ip-1-300x157.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/show-hidden-htaccess-file-magento-block-ip-1-768x401.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>4. Use the following syntax to block individual IP addresses:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Order Allow, Deny\nAllow from all\nDeny from 123.123.123.123<\/code><\/pre>\n\n\n\n<p>5. Add the code to the <em>.htaccess<\/em> file and edit the IP to match the address you want to block.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"801\" height=\"396\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/deny-ip-htaccess-magento-1.png\" alt=\"Block IPs in Magento using the .htaccess file.\" class=\"wp-image-1455\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/deny-ip-htaccess-magento-1.png 801w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/deny-ip-htaccess-magento-1-300x148.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/deny-ip-htaccess-magento-1-768x380.png 768w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/figure><\/div>\n\n\n<p>6. The <strong>#<\/strong> symbol signifies that a line is a comment and ensures that the system does not treat it as an executable command. <\/p>\n\n\n\n<p>7. For convenience, block multiple IPs in the same line using a <strong>space<\/strong> to separate IPs:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Deny from 123.123.123.123 456.456.456.456<\/code><\/pre>\n\n\n\n<p>8. Leaving out the final digit of an IP address blocks all IPs in the 0 \u2013 255 range:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Deny from 123.123.123.<\/code><\/pre>\n\n\n\n<p>9. Once you have added the IPs, select <strong>Save Changes,<\/strong> and close the <em>.htaccess<\/em> file.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-vivid-cyan-blue-background-color has-vivid-cyan-blue-color is-style-wide\"\/>\n\n\n\n<p><strong>Note:<\/strong> Another security measure you should implement is <a href=\"https:\/\/ccbill.com\/kb\/magento-change-admin-url\" target=\"_blank\" rel=\"noreferrer noopener\">changing the Magento admin link<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-vivid-cyan-blue-background-color has-vivid-cyan-blue-color is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. Use IP Blocker to Restrict IPs<\/h3>\n\n\n\n<p><strong>IP Blocker<\/strong> is a built-in cPanel tool used to prevent traffic from specific IPs and domains. <\/p>\n\n\n\n<p>1. Access the cPanel home screen and click <strong>IP Blocker<\/strong> in the <em>Security<\/em> section.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"391\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/ip-blocker-cpanel-magento-1.png\" alt=\"Location of IP Blocker in cPanel.\" class=\"wp-image-1450\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/ip-blocker-cpanel-magento-1.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/ip-blocker-cpanel-magento-1-300x147.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/ip-blocker-cpanel-magento-1-768x375.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>2. Enter an IP address, IP range, or domain name in the <strong>IP Address or Domain<\/strong> field.<\/p>\n\n\n\n<p>3. Click <strong>Add<\/strong> to block the IP addresses.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"414\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/ip-blocker-toll-block-ip-magento-1.png\" alt=\"Block IPs in Magento using IP Blocker.\" class=\"wp-image-1451\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/ip-blocker-toll-block-ip-magento-1.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/ip-blocker-toll-block-ip-magento-1-300x155.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/ip-blocker-toll-block-ip-magento-1-768x397.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>4. A list of <strong>Currently Blocked IP Addresses<\/strong> is available at the bottom of the page and can be used to unblock IPs if necessary.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Install a Magento Extension<\/h3>\n\n\n\n<p>Magento Open Source does not provide a built-in feature to block IPs or countries. To restrict access to your website, install a Magento extension.<\/p>\n\n\n\n<p>1. Visit the <a rel=\"noreferrer noopener\" href=\"https:\/\/marketplace.magento.com\" target=\"_blank\">Magento Marketplace<\/a> and browse the available modules that focus on restricting IPs. Explore several solutions before committing to an extension.<\/p>\n\n\n\n<p>2. For example, the <strong>IP Addresses &amp; Country Blocker <\/strong>is a paid module that enables you to micromanage access to individual products, pages, or the entire website from the Magento Admin.<\/p>\n\n\n\n<p>3. After installing the IP Addresses &amp; Country Blocker plugin, expand the <em>FME Extensions<\/em> tab and select the <strong>Block IPs<\/strong> option.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"395\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/block-ip-extention-geoip-magento-1.png\" alt=\"Block IPs in Magento using the IP Address and Country extention.\" class=\"wp-image-1453\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/block-ip-extention-geoip-magento-1.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/block-ip-extention-geoip-magento-1-300x148.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/block-ip-extention-geoip-magento-1-768x379.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>4. Click <strong>Add New<\/strong> to restrict IPs.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"348\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/block-ip-restrict-ip-magento-1.png\" alt=\"Select the Add New option to add IP to the blocklist.\" class=\"wp-image-1454\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/block-ip-restrict-ip-magento-1.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/block-ip-restrict-ip-magento-1-300x131.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/block-ip-restrict-ip-magento-1-768x334.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>5. Enter an IP or multiple IPs in the <strong>Block IP(s)<\/strong> field and click <strong>Save<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"372\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/geoip-ultimate-lock-restrict-ip-1.png\" alt=\"Enter IPs to block into designated field.\" class=\"wp-image-1456\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/geoip-ultimate-lock-restrict-ip-1.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/geoip-ultimate-lock-restrict-ip-1-300x140.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/geoip-ultimate-lock-restrict-ip-1-768x357.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>The IP Addresses &amp; Country Blocker enables merchants to introduce automated restrictions and access rules based on region, country, and additional custom parameters.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Block IPs Using the index.php File<\/h3>\n\n\n\n<p>Restrict specific IPs by using a PHP function that checks incoming IPs against an array and denies access to the listed addresses. <\/p>\n\n\n\n<p>1. Create an array of IP addresses by adding the following code to the <em>index.php<\/em> file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php $deny = array(&quot;123.123.123&quot;, &quot;233.233.233&quot;, &quot;344.344.344&quot;);\nif (in_array ($_SERVER&#091;&#039;REMOTE_ADDR&#039;], $deny)) \n{\n   exit();\n} ?&gt;<\/code><\/pre>\n\n\n\n<p>2. Replace the IP addresses from the example with the IPs you want to block.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Ask Payment Processor to Block IPs<\/h3>\n\n\n\n<p>Merchants regularly need to limit the sales of products and services in certain countries due to legal restrictions.<\/p>\n\n\n\n<p>Additionally, blocking payments for specific customers and regions is an effective way to mitigate risk levels and <a rel=\"noreferrer noopener\" href=\"https:\/\/ccbill.com\/blog\/what-is-payment-gateway-without-chargeback-option\" target=\"_blank\">chargebacks<\/a>.<\/p>\n\n\n\n<p>By coordinating efforts with a <a href=\"https:\/\/ccbill.com\/payment-processing\" target=\"_blank\" rel=\"noreferrer noopener\">payment processor<\/a>, a merchant can allow customers to access their website and only block payments for individual IPs.<\/p>\n\n\n\n<p>A payment processor can prevent payments on their payment forms based on IP, state, country, and other custom parameters. <\/p>\n\n\n\n<p>Contact your payment processor to check the available options and how to add IPs to their blocklists.<\/p>\n\n\n\n<p class=\"h3\">Conclusion<\/p>\n\n\n\n<p>By following any of the methods listed in this article, you have successfully blocked an IP address and explored different options for preventing malicious activity on your <a href=\"https:\/\/ccbill.com\/kb\/how-to-build-ecommerce-website-using-wordpress\" target=\"_blank\" rel=\"noreferrer noopener\">Ecommerce website<\/a>. <\/p>\n\n\n\n<p>Try combining several methods to automate processes and effectively control access to your Magento store.<\/p>\n\n\n\n<p> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The article shows five distinct methods to block individual IPs and entire IP ranges.<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[12,17,14],"tags":[],"class_list":["post-1413","post","type-post","status-publish","format-standard","hentry","category-e-commerce","category-online-security","category-web-development"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Block IP in Magento {5 Simple Ways} | CCBill KB<\/title>\n<meta name=\"description\" content=\"Find out how to block IP addresses in Magento instantly. Explore 5 foolproof methods and protect your Magento store.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ccbill.com\/kb\/magento-block-ip\" \/>\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 in Magento {5 Simple Ways} | CCBill KB\" \/>\n<meta property=\"og:description\" content=\"Find out how to block IP addresses in Magento instantly. Explore 5 foolproof methods and protect your Magento store.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ccbill.com\/kb\/magento-block-ip\" \/>\n<meta property=\"og:site_name\" content=\"CCBill Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ccbillBIZ\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-25T13:27:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-07T11:38:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento.png\" \/>\n<meta name=\"author\" content=\"Vladimir Kaplarevic\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CCBillBIZ\" \/>\n<meta name=\"twitter:site\" content=\"@CCBillBIZ\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vladimir Kaplarevic\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ccbill.com\/kb\/magento-block-ip#article\",\"isPartOf\":{\"@id\":\"https:\/\/ccbill.com\/kb\/magento-block-ip\"},\"author\":{\"name\":\"Vladimir Kaplarevic\",\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/person\/1f198b1218f6343a2682022ac4395644\"},\"headline\":\"How To Block an IP Address in Magento\",\"datePublished\":\"2021-02-25T13:27:54+00:00\",\"dateModified\":\"2023-03-07T11:38:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ccbill.com\/kb\/magento-block-ip\"},\"wordCount\":814,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ccbill.com\/kb\/#organization\"},\"image\":{\"@id\":\"https:\/\/ccbill.com\/kb\/magento-block-ip#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento.png\",\"articleSection\":[\"eCommerce Tutorials\",\"Online Security\",\"Web Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ccbill.com\/kb\/magento-block-ip#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ccbill.com\/kb\/magento-block-ip\",\"url\":\"https:\/\/ccbill.com\/kb\/magento-block-ip\",\"name\":\"How to Block IP in Magento {5 Simple Ways} | CCBill KB\",\"isPartOf\":{\"@id\":\"https:\/\/ccbill.com\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ccbill.com\/kb\/magento-block-ip#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ccbill.com\/kb\/magento-block-ip#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento.png\",\"datePublished\":\"2021-02-25T13:27:54+00:00\",\"dateModified\":\"2023-03-07T11:38:48+00:00\",\"description\":\"Find out how to block IP addresses in Magento instantly. Explore 5 foolproof methods and protect your Magento store.\",\"breadcrumb\":{\"@id\":\"https:\/\/ccbill.com\/kb\/magento-block-ip#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ccbill.com\/kb\/magento-block-ip\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ccbill.com\/kb\/magento-block-ip#primaryimage\",\"url\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento.png\",\"contentUrl\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento.png\",\"width\":800,\"height\":400,\"caption\":\"Using Magento to block IPs an malicious activity.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ccbill.com\/kb\/magento-block-ip#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"KB Home\",\"item\":\"https:\/\/ccbill.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Online Security\",\"item\":\"https:\/\/ccbill.com\/kb\/category\/online-security\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How To Block an IP Address in Magento\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ccbill.com\/kb\/#website\",\"url\":\"https:\/\/ccbill.com\/kb\/\",\"name\":\"CCBill Knowledge Base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/ccbill.com\/kb\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ccbill.com\/kb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ccbill.com\/kb\/#organization\",\"name\":\"CCBill\",\"url\":\"https:\/\/ccbill.com\/kb\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/ccbill-logo.png\",\"contentUrl\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/ccbill-logo.png\",\"width\":160,\"height\":70,\"caption\":\"CCBill\"},\"image\":{\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/ccbillBIZ\/\",\"https:\/\/x.com\/CCBillBIZ\",\"https:\/\/www.linkedin.com\/company\/ccbill\",\"https:\/\/www.youtube.com\/c\/CCBillBiz\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/person\/1f198b1218f6343a2682022ac4395644\",\"name\":\"Vladimir Kaplarevic\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cc08885e8fec32585bae8a0f5a1aef92f8c8c4fc33692e74e0ec2e63633d2478?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cc08885e8fec32585bae8a0f5a1aef92f8c8c4fc33692e74e0ec2e63633d2478?s=96&d=mm&r=g\",\"caption\":\"Vladimir Kaplarevic\"},\"description\":\"Vladimir is a resident Tech Writer at CCBill. He has more than 8 years of experience in implementing e-commerce and online payment solutions with various global IT services providers. His engaging writing style provides practical advice and aims to spark curiosity for innovative technologies.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Block IP in Magento {5 Simple Ways} | CCBill KB","description":"Find out how to block IP addresses in Magento instantly. Explore 5 foolproof methods and protect your Magento store.","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:\/\/ccbill.com\/kb\/magento-block-ip","og_locale":"en_US","og_type":"article","og_title":"How to Block IP in Magento {5 Simple Ways} | CCBill KB","og_description":"Find out how to block IP addresses in Magento instantly. Explore 5 foolproof methods and protect your Magento store.","og_url":"https:\/\/ccbill.com\/kb\/magento-block-ip","og_site_name":"CCBill Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/ccbillBIZ\/","article_published_time":"2021-02-25T13:27:54+00:00","article_modified_time":"2023-03-07T11:38:48+00:00","og_image":[{"url":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento.png","type":"","width":"","height":""}],"author":"Vladimir Kaplarevic","twitter_card":"summary_large_image","twitter_creator":"@CCBillBIZ","twitter_site":"@CCBillBIZ","twitter_misc":{"Written by":"Vladimir Kaplarevic","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ccbill.com\/kb\/magento-block-ip#article","isPartOf":{"@id":"https:\/\/ccbill.com\/kb\/magento-block-ip"},"author":{"name":"Vladimir Kaplarevic","@id":"https:\/\/ccbill.com\/kb\/#\/schema\/person\/1f198b1218f6343a2682022ac4395644"},"headline":"How To Block an IP Address in Magento","datePublished":"2021-02-25T13:27:54+00:00","dateModified":"2023-03-07T11:38:48+00:00","mainEntityOfPage":{"@id":"https:\/\/ccbill.com\/kb\/magento-block-ip"},"wordCount":814,"commentCount":0,"publisher":{"@id":"https:\/\/ccbill.com\/kb\/#organization"},"image":{"@id":"https:\/\/ccbill.com\/kb\/magento-block-ip#primaryimage"},"thumbnailUrl":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento.png","articleSection":["eCommerce Tutorials","Online Security","Web Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ccbill.com\/kb\/magento-block-ip#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ccbill.com\/kb\/magento-block-ip","url":"https:\/\/ccbill.com\/kb\/magento-block-ip","name":"How to Block IP in Magento {5 Simple Ways} | CCBill KB","isPartOf":{"@id":"https:\/\/ccbill.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ccbill.com\/kb\/magento-block-ip#primaryimage"},"image":{"@id":"https:\/\/ccbill.com\/kb\/magento-block-ip#primaryimage"},"thumbnailUrl":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento.png","datePublished":"2021-02-25T13:27:54+00:00","dateModified":"2023-03-07T11:38:48+00:00","description":"Find out how to block IP addresses in Magento instantly. Explore 5 foolproof methods and protect your Magento store.","breadcrumb":{"@id":"https:\/\/ccbill.com\/kb\/magento-block-ip#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ccbill.com\/kb\/magento-block-ip"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ccbill.com\/kb\/magento-block-ip#primaryimage","url":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento.png","contentUrl":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2021\/02\/how-to-block-ip-address-magento.png","width":800,"height":400,"caption":"Using Magento to block IPs an malicious activity."},{"@type":"BreadcrumbList","@id":"https:\/\/ccbill.com\/kb\/magento-block-ip#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"KB Home","item":"https:\/\/ccbill.com\/kb\/"},{"@type":"ListItem","position":2,"name":"Online Security","item":"https:\/\/ccbill.com\/kb\/category\/online-security"},{"@type":"ListItem","position":3,"name":"How To Block an IP Address in Magento"}]},{"@type":"WebSite","@id":"https:\/\/ccbill.com\/kb\/#website","url":"https:\/\/ccbill.com\/kb\/","name":"CCBill Knowledge Base","description":"","publisher":{"@id":"https:\/\/ccbill.com\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ccbill.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ccbill.com\/kb\/#organization","name":"CCBill","url":"https:\/\/ccbill.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ccbill.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/ccbill-logo.png","contentUrl":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/ccbill-logo.png","width":160,"height":70,"caption":"CCBill"},"image":{"@id":"https:\/\/ccbill.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ccbillBIZ\/","https:\/\/x.com\/CCBillBIZ","https:\/\/www.linkedin.com\/company\/ccbill","https:\/\/www.youtube.com\/c\/CCBillBiz"]},{"@type":"Person","@id":"https:\/\/ccbill.com\/kb\/#\/schema\/person\/1f198b1218f6343a2682022ac4395644","name":"Vladimir Kaplarevic","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ccbill.com\/kb\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cc08885e8fec32585bae8a0f5a1aef92f8c8c4fc33692e74e0ec2e63633d2478?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cc08885e8fec32585bae8a0f5a1aef92f8c8c4fc33692e74e0ec2e63633d2478?s=96&d=mm&r=g","caption":"Vladimir Kaplarevic"},"description":"Vladimir is a resident Tech Writer at CCBill. He has more than 8 years of experience in implementing e-commerce and online payment solutions with various global IT services providers. His engaging writing style provides practical advice and aims to spark curiosity for innovative technologies."}]}},"_links":{"self":[{"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/posts\/1413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/comments?post=1413"}],"version-history":[{"count":26,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/posts\/1413\/revisions"}],"predecessor-version":[{"id":4856,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/posts\/1413\/revisions\/4856"}],"wp:attachment":[{"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/media?parent=1413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/categories?post=1413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/tags?post=1413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}