How to Block IP Addresses or IP Ranges in cPanel (IP Blocker Tutorial) Print

  • 0

If you need to block specific users, malicious bots, or prevent access from an entire country or region to your website, you can use the **IP Blocker** tool available in your cPanel dashboard.

IP Blocker Steps

  1. Log into your cPanel dashboard.
  2. Scroll down to the Security section and click the IP Blocker icon.

     

  3. Under **Add an IP to deny**, enter the specific IP address or IP range you wish to block.

    Accepted IP Formats:

    • Single IP: 192.168.0.1
    • Range: 192.168.0.1-192.168.0.50
    • Implied Range: 192.168.0. (This blocks all IPs from 192.168.0.1 to 192.168.0.255)
    • CIDR Format: 192.168.0.1/32
  4. Click the **Add** button.

Viewing and Removing Blocked IPs

Once you've added an IP, it will be listed in the **Currently Blocked IP Addresses** section at the bottom of the page.

  • The blocked IP address will now be unable to access your site.
  • To remove an IP from the block list, simply click the **Delete** button next to the corresponding IP address.

Note: Blocking a large IP range, especially using an implied range or CIDR, can inadvertently block legitimate users. Use these features with caution and only when necessary.



Was this answer helpful?

« Back