How to Block IP Address in cPanel
Posted about 3 months ago 4kQuick IP Blocking
Use when: Spam, brute force, or malicious traffic detected.
Use IP Blocker Tool
cPanel → Security → IP Blocker → Enter single IP or range → Add.
IP Range Format
192.168.0.1
192.168.0.0/24
192.168.1-10.*
Advanced Options
CSF Firewall (if available)
WHM → ConfigServer Security & Firewall → Quick Deny.
Common Scenarios Table
| Threat | Block Method |
|---|---|
| Brute force login | Block after logs analysis |
| Bad bot scraping | Block user-agent + IP |
| Spam comments | Block country range |