This can be quite challenging for manual configuration, so it is recommended to use special online tools that have access to such country-specific IP databases. To block/allow access from a specific country, you need to list all IP subnetworks that belong to this country. RewriteCond % !^ĭo not forget to replace with the IP address you would like to allow or block. redirect visitors from IP address to another URL.block all visitors except for the specific admin IP for example, or yourself.block users with the IP address, allow access to everybody else:.You can always unblock the IP by clicking Remove next to the IP address in question:īelow you can find several examples for manual blocking configuration. It will be added to the list of blocked IPs. Enter the IP address that should be blocked into the ‘IP Address’ field and click on the Add button. Navigate to the IP Deny Manager menu in cPanel:Ģ. To block an IP using IP Deny manager, follow the steps below:ġ. You can always unblock the IP by clicking Delete next to the IP address in question.įor an automatic IP block, cPanel provides a special IP Deny Manager tool. It will be added to the list of blocked IPs: Enter the IP address that should be blocked into IP Address or DomainMfield and click on Add button. Log in to your cPanel and navigate to Security section > IP Blocker menu:Ģ. To block an IP automatically, follow the steps below:ġ. NOTE 3: IP Deny Manager blocks access to all hosted domains and services under your account. htaccess file, as IP Deny Manager provides the possibility only to block IPs. Such rules are to be manually configured in the. NOTE 2: Sometimes, it is easier to block all and allow access for certain IPs. So if you have a Value plan with us, you should set denying rules in the.
NOTE 1: IP Deny Manager is available for all shared hosting plans starting from the Professional one. Sometimes you might need to prevent access to the website or whole hosting account for specific visitors, for instance, when you are developing a website or in case of DDoS attacks.īelow you can find guidelines on setting up an automatic IP block, a manual IP block and a block from a specific country:įor an automatic IP block, cPanel provides a special IP Blocker tool. How to block IPs from accessing your website