How to manage the ModSecurity module in cPanel

Last modified: Monday November 27th, 2023

From this article, you will know how to manage the ModSecurity (also referred to as “Modsec”) module in cPanel.

About ModSecurity

ModSecurity is an Apache module and it provides an extra layer of security for your account. ModSecurity provides HTTP request filtering and other capabilities to help detect and block attacks before they reach the application.

ModSecurity is enabled by the default module. But there may be situations where you need to disable ModSecurity for testing or troubleshooting purposes. For example, it happens that the application does not work correctly when ModSecurity is enabled. To make sure of this, you can disable ModSecurity and see if the application works properly.

Managing ModSecurity

Please follow these steps to manage the ModSecurity module for your account:

  1. Log in to cPanel.
  2. Click ModSecurity in the SECURITY section of the cPanel home screen:                             How to manage the ModSecurity module in cPanel modsecurity cpanel
  3. Do one of the following steps to disable ModSecurity:
    • Click Disable under Configure All Domains to disable ModSecurity for all of your domains.
    • To disable ModSecurity for a specific domain, locate the domain under Configure Individual Domains, and then click Off.
  4. Do one of the following steps to re-enable ModSecurity:
    • To enable ModSecurity for all of your domains, click Enable under Configure All Domains.
    • To enable ModSecurity for a specific domain, locate the domain, and then click On under Configure Individual Domains.

More Information

If you need more information about ModSecurity, please visit https://github.com/SpiderLabs/ModSecurity/wiki.

Looking for an outstanding cPanel-based web hosting provider? Try our web hosting packages with cPanel

Was this article helpful?
Views: 313

10 Years Beehosting!
Celebrate with 70% OFF + FREE Site Transfer.

Beehosting.pro website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Menu