Blocking IP Addresses
Block specific IP addresses from accessing your website for security or spam prevention.
Block IP via cPanel
- Log into cPanel
- Go to Security > IP Blocker
- Enter IP address to block (e.g., 192.168.1.1)
- Or enter IP range (e.g., 192.168.1.*)
- 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:
- Check Visitors in Metrics section
- Review Error Logs for malicious attempts
- Check security plugin logs (if using WordPress)
- Look at Raw Access Logs
Unblock IP Address
- Go to IP Blocker
- Scroll to "Currently-Blocked IP Addresses"
- 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
