ModSecurity is a firewall that checks requests to your site against a rule set and blocks anything that looks like an attack. It protects you well, but sometimes it blocks something harmless, such as saving a long post or uploading a plugin.
How to recognise it
- A 403 Forbidden or 406 Not Acceptable page appears for an action that normally works.
- It happens at the same step every time, and only when submitting a form or request.
Check it quickly
- In cPanel open ModSecurity.
- Switch it off for your domain with the toggle, then try the action again.
- If it now works, switch ModSecurity back on straight away.
Do not leave it off. It is part of what keeps your site safe.
Get a lasting fix
Open a ticket (Opening a support ticket that gets answered quickly) and include the domain, the exact action, the time (with your time zone) and your public IP address. With those we can find the rule that triggered and adjust it for you.
If it doesn't work
- It still fails with ModSecurity off: it is something else. Look at the PHP limits in Changing PHP settings such as memory limit and upload size and the 500 guide in Fixing a 500 Internal Server Error.
- You are blocked from the whole site, not one action: you may have been blocked by IP. Open a ticket with your IP address.