Home > Help Center > Shared Hosting > Control Panel > IP Blocker in cPanel

IP Blocker in cPanel

This feature will allow you to block a range of IP addresses to prevent them from accessing your site. You can also enter a fully qualified domain name, and the IP Deny Manager will attempt to resolve it to an IP address for you.

To enter IP Blocker interface go to cPanel > Security and click on IP Blocker link:

cpanel ip blocker

Block an IP address

If you enter IP addresses directly into the .htaccess file, enter them in CIDR format only. CIDR stands for Classless Inter-Domain Routing, and refers to the standard of dividing the entire IP address space into smaller networks of variable size.

Enter the IP address or range in the IP Address or Domain text box. You can enter IP addresses in any of the following formats:

  • Single IP address (for example, 10.5.3.333).
  • Range (for example, 10.5.3.3-10.5.3.40).
  • Implied range (for example, 10.5.3.3-40).
  • CIDR format (for example, 10.5.3.3/32).
  • Implied IP address (for example, 10. means the system will block access to any IP address that begin with 10.).

Add an IP or Range

cpanel ip blocker

Click Add.

A confirmation message will be displayed:

cpanel ip blocker

IP Blocker will deny access from all blocked IP addresses to the entire hosting account, not just one site. If you want to block the access of an IP address to a separate site, use .htaccess file in the root directory of the site.

If someone from a blocked IP address will try to access any of your sites will get 403 Forbidden response:

cpanel ip blocker

Currently-Blocked IP Addresses

cPanel separates the IP address ranges that you enter into subnets in CIDR format. The system then adds them to the .htaccess file. The interface will display blocked IP addresses and ranges in CIDR notation.

For example, if you enter the range 208.74.124.96-208.74.124.128, the Currently-Blocked IP Addresses table will appear similar to the following example:

cpanel ip blocker

You can use this convenient online tool to convert IP range to CIDR format and vice-versa:

cpanel ip blocker

Unblock an IP address

To remove an IP address from the list of blocked IP addresses click Delete in the Actions column for the appropriate IP address:

cpanel ip blocker

Click Remove IP.

Conclusion

We hope that this information will help you easily block access to your account for all IP addresses that are trying to send spam through your site, or attempting multiple queries to retrieve login data.

Reference: www.ipaddressguide.com/cidr

#cpanel #security

Still not finding what you're looking for?

Contact our support team with any additional questions or concerns.

Contact support