UnderHost
Knowledgebase Docs

IP Blocker in cPanel: block abusive visitors safely

Use cPanel IP Blocker to deny specific IP addresses or ranges from your website, understand what it does not block,

On this page

cPanel IP Blocker denies selected visitors from accessing your websites over HTTP and HTTPS. It is useful for stopping a known abusive source after you have confirmed the IP in access logs, error logs, security logs, or application logs.

What IP Blocker does

Blocked visitors usually receive a 403 Forbidden response. cPanel manages the underlying web-server rules for you, so you do not need to manually edit .htaccess for simple blocks.

Block an IP address

  1. Log in to cPanel.
  2. Open Security and choose IP Blocker.
  3. Enter the IP address, such as 203.0.113.10.
  4. Click Add.

Test carefully if you are blocking an office, VPN, or proxy range so you do not block legitimate users.

Block ranges

FormatExampleWhat it blocks
Single IP203.0.113.10One address.
CIDR range203.0.113.0/24A subnet range.
Range203.0.113.10-203.0.113.50A specific start-to-end range.
Partial IP203.0.113.All addresses matching the prefix, if accepted by your cPanel version.

Remove a block

  1. Open cPanel IP Blocker.
  2. Find the entry under currently blocked IP addresses.
  3. Click Delete or the removal option shown by your cPanel theme.

The removal takes effect immediately, although browser or proxy caches can make old responses appear briefly.

Good use cases

  • A specific IP is scraping pages aggressively and appears in Raw Access logs.
  • A repeated attacker is hitting WordPress login or XML-RPC from one source.
  • A known malicious scanner is causing 403/404 noise or resource usage.
  • You need a temporary web-only block while investigating abuse.

Limitations

  • IP Blocker affects website traffic. It does not block FTP, email, cPanel, or database logins.
  • Attackers can change IP addresses, use proxies, or move to another network.
  • Large range blocks can affect legitimate visitors.
  • For broad bot traffic, use Cloudflare, application rate limits, or server-side firewall tools where available.

Related: Raw access logs in cPanel: download and analyze website traffic | Advanced .htaccess in cPanel: redirects, PHP settings, and access rules | Leech Protection in cPanel: limit shared password access | Hotlink Protection in cPanel: stop external sites using your files | How to secure your website

Was this article helpful?

Need cPanel hosting or licensing?

Use UnderHost cPanel hosting or add cPanel/WHM to a VPS or dedicated server for familiar website, email, DNS, and database management.

Related articles

Back to cPanel