It has been a very long time that we’ve used Mod_Security filtering. Within the past few weeks we have modified and updated some rules. Due to these changes some users have experienced 406 errors for the first time.
If there’s a 406 error, it simply means that our rules we are filtering with have caught something listed as objectionable. It’s rare that 406 errors will effect the typical website visitor, unless of course they’re trying to do something bad. Most often a 406 error will result when a user is posting something using a content management system, or installing software for the first time.
We do encourage you to let us know when you experience problems, because if a rule is causing a lot of false-positives we’d be better off not using that particular rule.
You, the user, can actually turn off mod_security filtering yourself by using standard .htaccess syntax. This method was first described here in relation to Wordpress, but the method applies to any file on your website.
Create or edit an .htaccess file within the particular file’s directory, enter the following (this is an example for WordPress):
<Files post.php>
SecFilterInheritance Off
</Files>
If the file is index.php, for example, place that filename in the directive instead.
We can also tag specific rules with an ID code, in that manner we can give you a code to turn off that particular rule, while allowing all other mod_security filtering to continue.