How to disable mod_security in .htaccess?

Issue:
  1. Having 403 error page when uploading files to your directory using your CMS application like Wordpress.
  2. Upload file end up with broken link.
Reason:

This might be due to mod security which are enabled on all of our hosting servers. This module is a good module which help to provide a platform for customer to have intrusion detection and prevention for web applications.

Solutions:

To solve this, you will need to add below line into your .htaccess file.

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

Was this answer helpful?

Also Read

How to force browser cache on my website?

Issue: When you check your website using http header tools you can see that your website is not...

How to redirect user from http to https?

Scenario: You want to force all users/client to access your website using https instead of http....

PHP failed to include file: File Not Found

The PHP include() File Not Found error will occur when a .php file attempts to include another...

My images are broken, or don't show up!

Firstly, check to see whether they are uploaded to our server and are in the correct...

How can I change my default PHP timezone?

Issue: Why my application keep showing UTC time? this has cause my application not to log the...