“412 Precondition Failed” HTTP Error – Solved

May 27, 2020 / How-to Guide

If you encounter an error message “412 Precondition Failed” on a particular webpage of a website, it means that the requested page request clashed with one of the security rules implemented over the server. These rules are generally implemented to protect the websites hosted over the server from malicious activities.

The most likely cause of this response is a mod_security setting. The mod_security module will send this response when a portion of the web request data that one of our servers received is likely to be malicious.

In order to disable this security feature one must use the following .htaccess directive:-

SecFilterEngine Off

If you come across this error which you believe that it shouldn’t have been there in the first place and if your website is hosted with us, please contact us either via. Live Chat or raise a ticket stating the exact page url for which you received the error for.

Note : If you have a WordPress based website hosted over the server and have Bad Behavior plugin installed which is active, then you must first try deactivating it.

This plugin is a PHP-based solution for blocking link spam and the robots which deliver it, which usually causes such an error in WordPress.

Spread the love