{"id":50421,"date":"2026-11-20T05:24:09","date_gmt":"2026-11-20T05:24:09","guid":{"rendered":"https:\/\/kickhost.com\/guides\/how-to-block-an-ip-address-to-deny-access-to-your-website\/"},"modified":"2026-11-28T09:02:46","modified_gmt":"2026-11-28T09:02:46","slug":"how-to-block-an-ip-address-to-deny-access-to-your-website","status":"publish","type":"kickhost_tutorial","link":"https:\/\/kickhost.com\/en-ke\/guides\/how-to-block-an-ip-address-to-deny-access-to-your-website\/","title":{"rendered":"How to Block an IP Address to Deny Access to Your Website"},"content":{"rendered":"<p>Blocking an IP address stops that visitor or bot from reaching your website. It helps against repeated spam, brute-force login attempts and abusive traffic.<\/p>\n<p>You can blacklist an IP Address to deny access to your website.<\/p>\n<p><strong>1.<\/strong> Log in to your cPanel account.<\/p>\n<p><strong>2.<\/strong> In the <strong>Security<\/strong> section, click on <strong>IP Blocker<\/strong>.<br \/> <img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/ip-deny-manager-icon.gif\" alt=\"\" align=\"middle\" loading=\"lazy\"><\/p>\n<p><strong>3.<\/strong> Under the <strong>Add an IP or Range<\/strong>, you should enter the IP Address you want to block.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/denyip.gif\" alt=\"\" loading=\"lazy\"><br \/><strong>4.<\/strong> Click on <strong>Add<\/strong>.<\/p>\n<p><strong>Here is Example:<\/strong><br \/><strong>Single IP Address:<\/strong> 192.168.0.1<br \/><strong>Range:<\/strong> 192.168.0.1-192.168.0.40<br \/><strong>Implied Range:<\/strong> 192.168.0.1-40<br \/><strong>CIDR Format:<\/strong> 192.168.0.1\/32<br \/><strong>Implies<\/strong> 10.*.*.* &#8212; 192.<\/p>\n<h2>Which formats you can use<\/h2>\n<p>You can block a single address, a range, or a CIDR block. Be careful with large ranges because they can block real visitors too. Never block your own IP address.<\/p>\n<h2>Remove a block<\/h2>\n<p>If you blocked the wrong address, remove it from the list in the same IP Blocker page and test again.<\/p>\n<h2>Frequently asked questions<\/h2>\n<p><strong>Can I block a whole country?<\/strong> IP Blocker works with addresses and ranges. Country blocking needs a firewall or security plugin.<\/p>\n<p><strong>Will the visitor see a message?<\/strong> They will normally see a forbidden message when they try to open your website.<\/p>\n<h2>Related guides<\/h2>\n<ul>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-create-a-cronjob-in-cpanel\/\">Create a cron job<\/a><\/li>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-import-a-database-via-phpmyadmin-in-cpanel\/\">Import a database<\/a><\/li>\n<\/ul>\n<p>Need cPanel hosting in Kenya? <a href=\"https:\/\/kickhost.com\/en-ke\/web-hosting\/\">See KickHost hosting plans<\/a> or <a href=\"https:\/\/kickhost.com\/en-ke\/contact\/\">contact our team<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Block an IP address or range in cPanel IP Blocker to deny access to your website. Steps for KickHost customers in Kenya.<\/p>\n","protected":false},"featured_media":0,"template":"","class_list":["post-50421","kickhost_tutorial","type-kickhost_tutorial","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial"}],"about":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/types\/kickhost_tutorial"}],"version-history":[{"count":3,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50421\/revisions"}],"predecessor-version":[{"id":53367,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50421\/revisions\/53367"}],"wp:attachment":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/media?parent=50421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}