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 do I password protect a directory?

Login to cPanel. Locate and click on the "Directory Privacy" icon under the "Files" category....

What are cron jobs?

Cron jobs are routines that execute a script on any given interval. For instance, you may have a...

I've updated my website, but still see the old version. What's going on?

You must Refresh your browser. Your computer holds a copy of your website in 'cache'. Things to...

What tools are available to optimize my website?

There are many free tools available to help you optimize your website: Pear Analytics...

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....