How to disable mod_security

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.

SecFilterScanPOST Off

Test access to your apps again and see if you able to get your apps working correctly. if this still haven't resolve, you may disable mod security completely by adding below line into your .htaccess.

SecFilterEngine Off

We suggest you to use the first option first so you will not loose the good functionalities of mod security.


Was this answer helpful?

Also Read

Failed to upload image or file to wordpress

Issue:There will be possibilities where you will not be able to upload any images or files to...

Page is displaying 404 Page Not Found error

The 404 Page Not Found error means that the user requested a page on the server that does not...

How much hosting do I need?

If you are starting your first website, chances are you are not familiar with common hosting...

Why is SEO important?

SEO (Search Engine Optimization) enables your website to be more accessible by the search...

What is hotlink protection?

Hotlink protection is disabling external use of your resources. For instance, if your website has...