How to disable/enable ModSecurity in cPanel

ModSecurity, sometimes called Modsec, is a popular Open-source Web application firewall (WAF). Originally designed as a module for the Apache HTTP Server, it has evolved to provide an array of Hypertext Transfer Protocol request and response filtering capabilities along with other security features across a number of different platforms including Apache HTTP Server, Microsoft IIS and NGINX. It is a free software released under the Apache license 2.0.

To disable/enable ModSecurity in cPanel:

  1. Go to yourdomain.com/cpanel and log in
  2. Navigate to Security section, look for ModSecurity option
  3. Here you can Disable/Enable ModSecurity for all domains.
    Or, you can choose an individual domain on which to disable/enable ModSecurity. Click the On/Off button.
    When you disable ModSecurity, a notice will be shown:

     

    Warning: ModSecurity is disabled for one or more of your domains. Only disable ModSecurity while you troubleshoot a problem with your configuration. Without ModSecurity enabled, your domains lose the extra layer of protection that the module provides.
  • 113 Users Found This Useful
Was this answer helpful?

Related Articles

How to use cPanel?

cPanel is a world popular hosting control panel. It make easy to manage your hosting account. You...

Fatal error: Out of memory allocated. Fixed?

Fatal error: Out of memory (allocated 57342713) (tried to allocate 33232415 bytes) in...

The WebSocket handshake failed" when using the cPanel Terminal

To fix this, we suggest trying the following links to access cPanel ->...

cPanel License expired issue?

We are using WHM/cPanel control panel in most of the servers. So paying monthly for whm and...

How to Backup your cPanel account from your previous server?

Here we are explaining about how to move your cpanel to our server. This is a very simple...