How to Configure ModSecurity in cPanel
Posted about 8 months ago 3.3kWhat is ModSecurity?
ModSecurity is an open-source web application firewall (WAF) that detects and prevents attacks on your site.
Enabling or Disabling Rules
1. Access ModSecurity
Find the "ModSecurity" icon in the Security section of cPanel.
2. Manage Domains
You can turn ModSecurity On or Off for each individual domain or for the entire account.
# Rule Monitoring
Detects: SQL Injection, XSS, Session Hijacking
When to Disable ModSecurity
If your site shows 406 errors, ModSecurity might be blocking a legitimate request.
| Symptom | Action |
|---|---|
| 406 Not Acceptable | Check logs / Disable temporarily |
| Blocked Form Submission | Whitelist specific rule |