ModSecurity is an Apache module or Web Application Level firewall which protects your website from various attacks. It is an application-level firewall that supports different servers. Like: Apache, Nginx, and IIS. It will work as an extra security layer. It monitors the real-time visitors of your website and ensures extra security of your website by blocking the malicious connections before it reaches the application. Most of the time it works very well with the website. But if the coding of the website is weak or in certain CMS, it can’t work with some website or functionality. In that case, you will get an error on your website. To fix the error you may have to disable ModSecurity.

Now we will show how to enable or disable ModSecurity from CPanel

Disable ModSecurity

First, you have to log in to your cPanel. If you don’t know how to log in to Cpanel then you can follow this guideline: How can I login to cPanel?

After login to cPanel scroll down or search modsecurtiy on the search box. In the security section, you will find a ModSecurity option. Now click on it.

You will find a list of your domain here. If you want you can disable ModSecurity for all of your domains by clicking the Disable button on the top. Or you can disable it for your selected domain.

Disable ModSecurity for all domains

To disable the ModSecurity for all of your domains just click the Disable option and then click Disable All.

Disable ModSecurity for your selected domain

To disable the ModSecurity for your selected domain click the Off button beside the domain. You can enable it again by just clicking the On button.

If already disabled and want to enable now

If the ModSecurity is disabled for all of your domains, you will see an Enable on the top. Now click the Enable button to enable the ModSecurity for all of your domains together.

If the ModSecurity is disabled for one or more than one domain, you will see two options on the top and that is Enable and Disable. Here click the Enable button to enable the ModSecurity for all of your domains like before. To enable Modsecurity for a selected domain, click the On button beside that domain.

Now you know how to enable or disable ModSecurity from CPanel. If your website conflicts with ModSecurity, disable it following the steps. And also enable it again following the steps.

Leave a Reply