Skip to content
HoganHost blog

Turning ModSecurity On and Off for Your Domains in cPanel

ModSecurity is a firewall for websites. It sits in front of your site and checks each request for patterns that look like attacks, such as attempts to inject malicious code or to brute-force a login page. It is installed on most cPanel accounts and is turned on by default.

Leave it on. This guide shows you where to find the switch and when turning it off for a short time is the right move.

Open ModSecurity

  1. Log in to cPanel.
  2. In the Security group, click ModSecurity.

If you do not see this tool, your hosting provider may need to enable it. Contact HoganHost support to ask.

Read the Domain List

The page lists each domain on your account with a switch beside it, set to On or Off. Use the Enable or Disable buttons to change every domain at once, or change one domain at a time with its own switch.

Turn It Off for Troubleshooting Only

ModSecurity can block legitimate requests. Examples include a contact form that suddenly fails or an admin login that keeps returning an error. If you suspect this, follow these steps.

  1. Switch the affected domain to Off.
  2. Test the feature that was failing.
  3. Switch the domain back to On as soon as you finish testing.

Do not leave ModSecurity off while you wait for a fix. An unprotected site is an easy target while you are busy elsewhere.

Find the Real Cause

If turning ModSecurity off solves the problem, the rule it blocked is the real issue. Check the Errors tool in the Metrics group, covered on Day 9, for the entry that matches the failed request. Ask HoganHost support to help you adjust the specific rule, rather than leaving the whole firewall off.

Need protection that stays on without constant troubleshooting? Explore HoganHost’s SSL and security services.

Share this article
Written by

Join the conversation.

Your email address will not be published. Required fields are marked *

Your next chapter starts here

Put your next big idea online.

The right hosting. A name of your own. A real team in your corner.

Explore Hosting