How to block IPs from accessing your website?

For automatic IP block cPanel provides special IP Deny Manager tool.   
                               
 1. Navigate to IP Deny Manager menu in cPanel

2. Enter the IP address that should be blocked to the ‘IP Address’ field and click on Add button.It will be added to the list of blocked IPs.

You can always unblock IP by clicking Remove next to the IP address in question

To block/allow access from a specific country, you need to list all IP subnetworks that belong to this country.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. Example of such an online resource is

http://incredibill.me/htaccess-block-country-ips

  • block, IPS, Accessing, website
  • 123 Users Found This Useful
Was this answer helpful?

Related Articles

How to Backup your cPanel account from your previous server?

Here we are explaining about how to move your cpanel to our server. This is a very simple...

How to use cPanel?

cPanel is a world popular hosting control panel. It make easy to manage your hosting account. You...

Accessing cPanel from a dynamic IP address

If you get logged out from cPanel and get an error The IP has changed, then it is possible that...

How can I check my website access logs?

Using Raw Access Logs menu in cPanel you can check the traffic coming to your website, before it...

How do I add an Apache handler?

1. Click on the “Apache handlers” link in Cpanel. (under the 'site management header.)2. Enter...

Powered by WHMCompleteSolution