Blocking IP Addresses

Block specific IP addresses from accessing your website for security or spam prevention.

Block IP via cPanel

  1. Log into cPanel
  2. Go to Security > IP Blocker
  3. Enter IP address to block (e.g., 192.168.1.1)
  4. Or enter IP range (e.g., 192.168.1.*)
  5. Click Add

Block Multiple IPs

You can block:

  • Single IP: 192.168.1.100
  • Range: 192.168.1.* (blocks 192.168.1.0-255)
  • Subnet: 192.168.*.* (blocks entire 192.168 range)

Finding IP Addresses

To find IP addresses to block:

  1. Check Visitors in Metrics section
  2. Review Error Logs for malicious attempts
  3. Check security plugin logs (if using WordPress)
  4. Look at Raw Access Logs

Unblock IP Address

  1. Go to IP Blocker
  2. Scroll to "Currently-Blocked IP Addresses"
  3. Click Delete next to IP to unblock

Block via .htaccess (Advanced)

For more control, edit .htaccess file:

# Block single IP
Deny from 192.168.1.100

# Block IP range
Deny from 192.168.1.

# Block multiple IPs
Deny from 192.168.1.100
Deny from 203.0.113.50

Important Notes

  • Don't accidentally block your own IP
  • Blocked IPs receive "403 Forbidden" error
  • Dynamic IPs change, so blocking may be temporary
  • Consider using security plugins for advanced protection
Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution