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.
Login to cpanel. Eg : https://yourdomain.com/cpanel
Go to the section ‘Security’ and click the icon ‘ModSecurity’.

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.
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>
Login to cpanel. Eg : https://yourdomain.com/cpanel
Go to the section ‘Security’ and click the icon ‘ModSecurity’.

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.
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
Thank you!