How to Disable mod_security using .htaccess

mod_security is a useful Apache module that protects your website from malicious attacks. However, if it doesn’t work properly for you, then you may no option but to turn off mod_security. Here’s how to disable mod_security in Apache. We will look at how to disable mod_security in Apache using .htaccess, and cPanel.

  1. Open .htaccess file from Cpanel File Manager.
  2. Add the following code to your .htaccess file to turn off mod_security in Apache web server.
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off

Powered by BetterDocs