{"id":991,"date":"2020-06-04T18:05:10","date_gmt":"2020-06-04T10:05:10","guid":{"rendered":"https:\/\/www.wesbytes.com\/guide\/?post_type=kb&#038;p=991"},"modified":"2026-01-12T12:24:54","modified_gmt":"2026-01-12T04:24:54","slug":"deny-an-ip-domain-on-cpanel","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/deny-an-ip-domain-on-cpanel","title":{"rendered":"Deny an IP \/ Domain on cPanel"},"content":{"rendered":"<h3 dir=\"ltr\"><strong>Deny an IP \/ Domain on Linux Server :<\/strong><\/h3>\n<p dir=\"ltr\">The steps below will allow you to cancel visitor access from a specific IP Address or Domain Name. The simplest way would be to just do it through your <a href=\"https:\/\/www.cpanel.net\/\" rel=\"nofollow noopener\" target=\"_blank\">cPanel<\/a>. You can also do it by editing your .htaccess file in the directory you are working in.<\/p>\n<p dir=\"ltr\"><b><u>Deny an IP using cPanel<\/u><\/b><\/p>\n<p dir=\"ltr\">1. Login to your \u2018cPanel\u2019.<\/p>\n<p dir=\"ltr\">2. Under \u201cSecurity\u201d, go to \u2018Manager\u2019. OR you can find \u201cIP Blocker\u201d under Security.<\/p>\n<p dir=\"ltr\">3. Under \u2018Add :\u2019 enter the IP address or Domain name you wish to block from accessing your site.<\/p>\n<div dir=\"ltr\">\n<p>4. Click \u2018Add\u2019.<\/p>\n<\/div>\n<div dir=\"ltr\">\n<p dir=\"ltr\"><b><u>Deny an IP using .htaccess file<\/u><\/b><\/p>\n<p dir=\"ltr\">Add the coding below into your .htaccess file:<\/p>\n<p dir=\"ltr\"><i>order allow,deny<\/i><\/p>\n<p dir=\"ltr\"><i>deny from 218.111.10.220<\/i><\/p>\n<p dir=\"ltr\"><i>deny from .domain.com<\/i><\/p>\n<p dir=\"ltr\"><i>allow from all<\/i><\/p>\n<\/div>\n<p dir=\"ltr\">\n","protected":false},"excerpt":{"rendered":"<p>Deny an IP \/ Domain on Linux Server : The steps below will allow you to cancel visitor access from a specific IP Address or Domain Name. The simplest way would be to just do it through your cPanel. You can also do it by editing your .htaccess file in the directory you are working in. Deny an IP using&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[34],"kbtag":[1306,1328,1567],"class_list":["post-991","kb","type-kb","status-publish","hentry","kbtopic-cpanel","kbtag-cpanel","kbtag-domain","kbtag-ip"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=991"}],"version-history":[{"count":4,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/991\/revisions"}],"predecessor-version":[{"id":5933,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/991\/revisions\/5933"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=991"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=991"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}