Blocking an unwanted website visitor with cPanel IP Blocker

IP Blocker restricts website access from an address or range. It is a web access control, not a server firewall, and it does not by itself block that address from webmail, SSH or every other hosting service.

What you need before you begin

Use a verified source address from trustworthy logs. A CDN or reverse proxy can change the address seen at the origin, so establish whether real visitor addresses are restored before creating a rule. Keep your own current access available.

01 Block an unwanted website visitor with cPanel IP Blocker

  1. Open IP Blocker in cPanel and review existing entries before adding another one.
  2. Enter the exact unwanted IP address when possible. Use a range or CIDR only when you understand every address it covers; a broad prefix can block many unrelated visitors.
  3. Choose Add, then inspect the resulting range in the blocked-address table to verify its boundaries.
  4. Test the website from an unaffected network and review fresh requests in the logs. Do not assume a blocked bot will continue using one permanent address.
  5. To remove an accidental block, choose its Delete action and confirm Remove IP. Record why the rule was created and when it should be reviewed.

Confirm the expected result

Legitimate users should still reach the site, while matching web requests receive the intended denial. If a proxy is involved, verify the rule acts on the visitor rather than the shared proxy address.

What if I block my own access or the unwanted traffic keeps changing IP?

For distributed attacks or login abuse, use appropriate WAF, application and provider controls instead of endlessly adding broad blocks. If you block your own web access, sign in through an authorised management path and remove the rule, or ask support to review the exact entry.

Sources and further reading

  • 0 Users Found This Useful
  • cpanel-whm, security-ssl
Was this answer helpful?

Related Articles

Password-protecting a website folder with cPanel Directory Privacy

Directory Privacy places a browser login in front of a website folder, making it useful for a...

Preventing unwanted image hotlinking with cPanel

Hotlink Protection can restrict other sites from embedding selected files hosted on your...

Diagnosing a legitimate request blocked by ModSecurity in cPanel

ModSecurity is a web application firewall that can block suspicious requests before the...

Enabling two-factor authentication for a cPanel login

cPanel two-factor authentication adds a time-based code to the panel login after the password....

Replacing or removing cPanel two-factor authentication

When changing phones, reconfigure cPanel 2FA so the new authenticator can generate valid codes....