Block an IP address or a Domain Name Using cPanel

Blocking an IP address or domain name can improve website security as it helps prevent hacking and DDoS attacks. It can also block other unwanted visitors.

To block an IP address or domain name, follow these steps:

1. First, make sure you know the IP address or the domain name that you wish to block.

2. Log in to cPanel.

3. Scroll to the Security section and click IP Blocker.

4. In the IP Blocker dashboard, type the IP address or domain name in the Add an IP or Range field.

If you wish, you can also enter an IP range to block a range of IP addresses. See bottom of page for the correct format.

5. Check you have entered the IP address or domain name correctly and then click the Add button. You will then see the following notification:

6. When you return to the IP Blocker dashboard, you will see the IP address or domain name listed in the Currently-Blocked IP Addresses table.

7. If you wish to unblock an IP address or domain name, simply click Delete in the Actions column of the table.  

Additional Information: IP addresses, IP range and domain name formats

Here are the correct formats you will need to use with IP Blocker:

Single IP Address – To block a single IP address, use the standard IP format of four sets of numbers, each separated by a dot. For example,

Range – To block a range of IP addresses, list the first and last of the range you wish to block and separate them with a hyphen/dash. For example,

Implied Range – This is a shorthand way to input a range. For example:

Implied IP address – This uses a truncated version of an IP address to bulk block all IP addresses that follow the last used dot. For example, inputting 193. would block all IP addresses which start with 193. Similarly, inputting 193.166. would block all IP addresses beginning with 193.166.

Domain name – This uses the domain name e.g. You don’t need to input the full URL. When this in inputted, IP Blocker will try to find the domain’s IP address for you.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Launch your website to cpanel

Having completed creating your website locally your need to host the website. Requirements...

Add and Configure an FTP Account in cPanel

  FTP accounts enable you to upload and manage files on your website. This article...

Change File Permissions in cPanel

An overview of file permissions There are three levels of file permission, these are read,...

Change IP addresses for multiple accounts

If you add a new IP address to a server or change the shared IP address of your server, you may...

Change MySQL database user’s password from cPanel

1. Enter in your cPanel account. 2. You will enter into the cPanel homepage. Select the...