Skip to content
+2 (02) 20824060+2 012 77002700Pay in EGP: Fawry · InstaPay · Cards

What Is ModSecurity, and What to Do When It Blocks a Request

ModSecurity is a web application firewall. It checks every request to your site against a set of rules and blocks the ones that look like attacks, such as SQL injection or attempts to upload malicious files. It works quietly in the background.

Where to see it

In cPanel, open ModSecurity in the Security section. You can see whether it is on for all your domains, or switch individual domains On or Off under Configure Individual Domains. If the page is missing, the server owner has not enabled that tool for your account, and protection is managed by us.

Leave it on

cPanel strongly recommends keeping ModSecurity enabled for all domains. Turn it off only briefly, to test whether it is the cause of a problem, and turn it back on right away.

When it blocks something legitimate

Sometimes a rule blocks normal activity, for example saving a long post in WordPress, uploading a plugin, a payment callback or a form with unusual characters. The visitor sees a 403 Forbidden page, or the action simply fails.

  1. Note the exact action, the address and the time.
  2. Try again once, to be sure it repeats.
  3. Contact us with those details. We check the firewall log and, if needed, adjust the rule for that case.

Other causes of 403 errors, such as file permissions, are in common website errors and what they mean.

What it does not replace

A firewall helps, but it is one layer. Keep WordPress, plugins and themes updated, use strong passwords and take backups. See how to secure your cPanel website.

Need help choosing?Tell us about your project and we will recommend the right solution.
Contact us