How to Block or Unblock an IP Address in cPanel — SSL & Security SSL & Security

How to Block or Unblock an IP Address in cPanel

By Genhost Team 2 min read

If a particular IP address is abusing your site — spamming forms, scraping content, or probing for weaknesses — cPanel’s IP Blocker lets you deny it access. Here’s how to block and unblock addresses, and when it’s genuinely useful.

When to block an IP

  • A specific, persistent abuser hitting your site from a fixed address.
  • A source of spam on your forms or comments.
  • A scraper consuming resources.

Be realistic: serious attackers rotate IPs easily, so blocking is a targeted tool, not a complete defence. For broad protection, rely on a web application firewall and malware protection.

Block an IP address

  1. In cPanel, open IP Blocker (also called IP Deny Manager, under Security).
  2. Enter the IP address or range you want to block. You can use:
    • A single IP: 203.0.113.50
    • A range: 203.0.113.0-203.0.113.255
    • CIDR format: 203.0.113.0/24
  3. Click Add.

Requests from that address are now denied access to your site.

Unblock an IP address

  1. In IP Blocker, find the entry in the list of blocked IPs.
  2. Click Delete next to it.
  3. Confirm.

Access is restored immediately.

If you lock yourself out

It happens — your own IP changed, or you blocked a range that includes you:

  • Open cPanel from a different network (mobile data or another connection), go to IP Blocker, and remove the entry.
  • If you can’t reach cPanel at all, contact support to remove the block.

To avoid this, don’t block broad ranges unless you’re sure your own address isn’t inside them.

Finding the offending IP

To know which IP to block:

  • Check your error logs or access logs for the abusive requests.
  • WordPress security plugins and server tools often log and name attacking IPs.

Blocking vs better protection

IP blocking is quick for a known troublemaker, but for repeated attacks from changing addresses, server-level protection does more:

  • A web application firewall blocks malicious patterns regardless of IP.
  • Brute-force protection stops repeated login attempts.
  • Malware scanning catches infections — see Imunify360.

Security that works together

cPanel’s IP Blocker, hotlink protection and directory privacy are included on every Web Hosting and WordPress Hosting plan, backed by server-level firewall and malware protection. For account-level safety, also see secure your hosting account with strong passwords and 2FA.

Frequently asked questions

How do I block an IP address from my website?

In cPanel, open IP Blocker (IP Deny Manager), enter the IP address or range you want to block, and submit. Requests from that address are then denied access to your site. You can remove the block the same way.

I blocked my own IP by mistake and cannot access my site. What now?

Your IP may have changed, or you blocked a range that includes you. Access cPanel from a different network (like mobile data), open IP Blocker, and remove the entry. If you cannot reach cPanel at all, contact support to remove it.

Is blocking IP addresses an effective security measure?

It helps against a specific, persistent abuser from a fixed IP, but determined attackers change IPs easily, so it is not a complete defence. Use it for targeted cases, and rely on a web application firewall and malware protection for broad security.