How to disable mod_security in .htaccess file
May 12th, 2008 | Category: Security, Weblog, WordPress | 12 Comments
It is quite common that mod_security is interfering the functions of your web applications. mod_security is installed and enabled by your web server admin but you can still disable it for your individual website using .htaccess file by following this tutorial.
“
mod_securityis an Apache module (for Apache 1 and 2) that provides intrusion detection and prevention for web applications.” — HowtoForge
Disable mod_security in .htaccess file
- If you do not have one yet, an
.htaccessfile in the folder of your web application - To disable
mod_securityCOMPLETELY, add the following line to the .htaccess file:
SecFilterEngine Off
OR, to disable HTTP POST scanning only, use the following instead:
SecFilterScanPOST Off - Save the file and test your web application to check whether disabling
mod_securityhas solved your problem.
I recommend you to try SecFilterScanPOST Off first, instead of disabling mod_security completely.


