How to activate or deactivate ModSecurity in cPanel?
PreviousHow to create Scheduled Tasks (Cron Jobs) in cPanel?NextHow to activate two-factor authentication or 2FA in cPanel?
Last updated
Last updated
If you find that your website displays a 403, 405, or 406 error, it is very likely that some element of your site is being blocked by a ModSecurity rule.
ModSecurity is an application firewall. What it does is block certain requests or code executions that it deems dangerous. You can configure ModSecurity to allow or block certain executions as required by your website.
In the cPanel control panel, you can access the ModSecurity settings by following these steps:
In the cPanel control panel, go to the Security => ModSecurity option.
On the new screen, you will see your main domain and its subdomains. You can enable or disable ModSecurity on each one using the buttons on the right.