{"id":4036,"date":"2019-10-29T16:33:50","date_gmt":"2019-10-29T08:33:50","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&#038;p=4036"},"modified":"2022-10-05T07:56:40","modified_gmt":"2022-10-04T23:56:40","slug":"deny-an-ip-domain-on-cpanel","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/deny-an-ip-domain-on-cpanel","title":{"rendered":"Deny an IP \/ Domain on cPanel"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"4036\" class=\"elementor elementor-4036\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-596d97be elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"596d97be\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-66eb04c5\" data-id=\"66eb04c5\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8af8634 elementor-widget elementor-widget-heading\" data-id=\"8af8634\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Deny an IP \/ Domain on Linux Server<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1f218965 elementor-widget elementor-widget-text-editor\" data-id=\"1f218965\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<div dir=\"ltr\"><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 cPanel. You can also do it by editing your .htaccess file in the directory you are working in.<\/p><p dir=\"ltr\"><b><u>Deny an IP using cPanel<\/u><\/b><\/p><p dir=\"ltr\">1. Login to your &#8216;cPanel&#8217;.<\/p><p dir=\"ltr\">2. Under &#8220;Security&#8221;, go to &#8216;Manager&#8217;. OR you can find &#8220;IP Blocker&#8221; under Security.<\/p><p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4042\" src=\"https:\/\/www.mondoze.com\/guide\/wp-content\/uploads\/2021\/03\/Deny-an-IP1-300x55.png\" alt=\"\" width=\"300\" height=\"55\" \/><\/p><p dir=\"ltr\">3. Under &#8216;Add :&#8217; enter the IP address or Domain name you wish to block from accessing your site.<\/p><p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4043\" src=\"https:\/\/www.mondoze.com\/guide\/wp-content\/uploads\/2021\/03\/Deny-an-IP2-300x138.png\" alt=\"\" width=\"300\" height=\"138\" \/><\/p><p>4. Click &#8216;Add&#8217;.<\/p><\/div><div dir=\"ltr\"><p dir=\"ltr\"><b><u>Deny an IP using .htaccess file<\/u><\/b><\/p><p dir=\"ltr\">Add the coding below into your .htaccess file:<\/p><p dir=\"ltr\"><i>order allow,deny<\/i><\/p><p dir=\"ltr\"><i>deny from 218.111.10.220<\/i><\/p><p dir=\"ltr\"><i>deny from .domain.com<\/i><\/p><p dir=\"ltr\"><i>allow from all<\/i><\/p><\/div>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","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. &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.mondoze.com\/guide\/kb\/deny-an-ip-domain-on-cpanel\"> <span class=\"screen-reader-text\">Deny an IP \/ Domain on cPanel<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[44],"kbtag":[110],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/4036"}],"collection":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/comments?post=4036"}],"version-history":[{"count":8,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/4036\/revisions"}],"predecessor-version":[{"id":17934,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/4036\/revisions\/17934"}],"wp:attachment":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/media?parent=4036"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=4036"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtag?post=4036"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=4036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}