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.
  • 75 Users Found This Useful
Was this answer helpful?

Related Articles

Fatal error: Out of memory allocated. Fixed?

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

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...

How to change cPanel interface theme style?

Changing the style If you have used older versions of cPanel, it can take awhile to adjust to...

How to transfer cPanel accounts from another server?

This tutorial will show you how you can create FULL BACKUP and remotely upload this to your new...

How to use cPanel?

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