Using the IP Blocker in cPanel

cPanel tutorials & how to guides
90% of all website hosting companies now offer cPanel

Block IP addresses

Updated: July 23, 2023
By: RSH Web Editorial Staff

Contact Us

cPanel Version 108.0.15  -  Theme Version Jupiter

cPanel Tutorials Block IP

cPanel - Security - IP Blocker

Internet Protocol Numbers
The IP Blocker feature allows you to block access to your hosting account for one or more IP addresses or even fully qualified domain names. This is usually done to ban or block any undesirable sites and hosts from entering the server or node and causing harm to the network or individual computers.

IP Blocker

Blocking IP Addresses

How to block and unblock IP addresses from accessing your site using the cPanel IP Blocker

Although our Hosting packages already have a firewall installed to detect potentially malicious behavior and automatically blocks those IP addresses.
Sometimes you will only want to stop someone or stop their IP address from accessing your website, which is most often done using the .htaccess file.
cPanel also has an IP blocking feature to help create these rules for you.

How to Block an IP Address or Address Range

Login to your cPanel

Under section Security » IP Blocker

Next, enter the IP address or address range in the box and click "Add"

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, 101.505.3.33)
  • • Range (for example, 101.505.3.3-
  • • Implied range (for example, 101.505.3.3-40)
  • • CIDR format (for example, 101.505.3.0/24)
      - 0/24 is a representation of IPv4 addresses with the range of 0-255
  • • Implied IP address (for example, 10.)
     - If you enter 10., the system blocks access to any IP address that begin with 10.

add ip

You should then see a confirmation screen like this:

ip add

You should now see the newly-added IP or range in the Currently-Blocked list:

ip list

If desired, you can check your Websites ".htaccess" file and see that the block was added

How to Unblock an IP Address or Address Range

This only works if cPanel's IP Blocker is how the IP was blocked in the first place, Otherwise the unblocking will need to be done another way

For assistance on this, please do not hesitate to contact us

Log into cPanel and access the IP Blocker page as shown in the previous section

Look in the list for the IP address or address range you would like to unblock, and click the "Delete" button in that row:

unblock ip

cPanel will ask you if you are sure. If you are sure you want to unblock the IP, click "Remove IP". Otherwise, click "Cancel":


After unblocking the IP, you should see a confirmation screen


The IP address will no longer be listed in the "Currently-Blocked" list:

not in list

Related cPanel Tutorials and How To Guides
Wide range of key features crucial for website management

Tweet  Share  Pin  Email

We welcome your comments, questions, corrections and additional information relating to this article. Please be aware that off-topic comments will be deleted.
If you need specific help with your account, feel free to contact us anytime
Thank you

More Articles Of Interest

No matter what your business or personal needs are, RSH Web Services delivers! Our scalable hosting plans will suit the needs of all types of website owners. For a small personal blog or a business website with advanced functionality