Articles on: cPanel Tutorial

How to Disable Mod_Security in Cpanel

Mod_security module helps to protect your website from various attacks. If mod-security is disabled on your account, your website will be at risk from vulnerabilities. We will not recommend to disable Mod-Security on your account. However, if the rules of the mod-security tools are interfering with the operations of the website and you do not find modification of rules then the best solution is to disable mod-security.


  1. Login to cpanel. Eg : https://yourdomain.com/cpanel


  1. Go to the section ‘Security’ and click the icon ‘ModSecurity’.



  1. Here you can see the option for enabling the ModSecurity. Click the button ‘Disable’. This action will disabled Mod_Security for all of your domains.


  1. You can also disable mod_security for a single domain, Select the domain you want to disable mod_security and click ‘Off’ button to disable.



You may also disable Mod_Security from .htaccess file by adding below code :


<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>



Updated on: 07/01/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!