This document contains information on how to block access to your website from specific IP addresses, IP ranges, or domains using the cPanel IP Blocker, and how to unblock them.
The IP Blocker prevents specific IP addresses or address ranges from accessing your website. It is useful, for example, to stop someone repeatedly trying to enter your site's administration panel, resource-consuming bots, or visitors generating abuse.
Access: log in to cPanel from the client portal → Log in to cPanel, or at https://yourdomain.com/cpanel. Then open Security → IP Blocker.
Block an IP or a range
- Under IP Address or Domain, type what you want to block. These formats are accepted:
- An IP:
203.0.113.25 - A range:
203.0.113.10-203.0.113.40 - A shortened range:
203.0.113.10-40 - A CIDR block:
203.0.113.0/24 - A prefix:
203.0.113.blocks all IPs starting this way. - A domain: the name of a computer or service, which the system converts into its IP addresses.
- An IP:
- Click Add.
Blocked addresses appear under Currently Blocked IP Addresses, converted to CIDR format, with the start and end IP of each range.
Caution: a short prefix blocks many addresses. For example, 10. blocks all IPs starting with 10, millions in total, and may shut out legitimate visitors. Also verify that you are not blocking your own IP, your office's IP, or that of a service you use, such as a payment gateway or monitoring.
Unblock an IP
- In the blocked addresses table, click Remove next to the IP or range.
- Confirm with Remove IP.
Useful Data
- Blocks the website only: blocked IPs can still use Webmail and send mail.
- How to find a suspicious IP: review the Visitors tool, under the Metrics section in cPanel. For more details, search for visitors or access log in the knowledge base.
- IPs change: many attackers use variable addresses. If the problem is access to WordPress or another application, complement the block with strong passwords and a security plugin.
Frequently Asked Questions
- I cannot access my own site (403 error): you probably blocked your IP. Log in to cPanel from the client portal and remove it from the list.
- I blocked an IP and it still accesses: reload without cache with Ctrl + F5, or the visitor may have changed their IP. If your site uses a CDN service, the block must be done in that service.
- Domain blocking does not work: it depends on that domain resolving to a fixed IP. Block the IP or range directly.
- I am receiving attacks from many different IPs: open a ticket with the details so that support can evaluate the case.
If you need help identifying or blocking an IP, open a ticket from the client portal or consult via the online chat on the site.
