Knowledge Base
How to Block or Unblock IP Addresses in cPanel
When you want to restrict or allow specific IP addresses from accessing your website. This article explains how to block or unblock IP addresses in cPanel.
cPanel provides us with this security interface in their server which allows you to block access to your site for one or more IP addresses or fully qualified domain names.
Steps to access the IP Blocker plugin
- Log in to your cPanel via valid credentials:
- Navigate to IP Blocker via the IP Blocker option under the Security tab of your cPanel

Steps to block an IP address
- In the text box for “IP Address or Domain”, type the IP address or domain that you want to block.
- Click on ADD Button to Block the added IP Address or domain name.

- You will be greeted with the following confirmation screen

Steps to unblock an IP address
You can see all the blocked IP address under “Currently-Blocked IP Addresses”
- Click on Delete next to the required IP address:

- Then confirm by clicking the Delete button

That's it! The IP address has been removed from the blocked list
Note
Note
- Remember, if the IP was blocked by something other than the IP Blocker, the block will need to be removed some other way, depending on how it was initially blocked.
- Blocking IP Address via this plugin will add a deny rule in .htaccess file present under the directory “/home/<cPanel username>/public_html”
- You can enter IP addresses in any of the following formats:
- The 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.)