ModSecurity WAF Protection#
ModSecurity inspects incoming HTTP/HTTPS traffic at the web server layer to block SQL injections, cross-site scripting (XSS), and malicious scanning bots before they reach your PHP scripts.
Using cPanel IP Blocker#
To block an abusive IP address or subnet:
- 1In cPanel, go to Security -> IP Blocker.
- 2Enter the IP (e.g.
198.51.100.4) or CIDR range and click Add.