How to Block an IP Address from Your Website

Stop a specific visitor, bot or range of addresses from reaching your site.

← Help Center

If a particular address is spamming your forms or hammering your site, you can block it.

Block an address

  1. Log in to cPanel and open Security → IP Blocker.
  2. Enter the IP address or range. Examples: a single address (192.0.2.10), a range (192.0.2.1-192.0.2.40), or CIDR notation (192.0.2.0/24).
  3. Click Add.

To unblock an address, find it under Currently-Blocked IP Addresses and click Delete.

Tip: Find troublesome addresses under Metrics → Visitors or Raw Access in cPanel. Be careful with large ranges — you could block legitimate visitors.

Related articles

Still need a hand?

Our team is available 24/7. Submit a support ticket or call 877.821.HOST and we’ll walk you through it — or do it for you.