When your visitors go to your website and they get a "406 Unacceptable" error on your site, this is most likely caused by mod_security. All our servers have mod_security enabled by default. mod_security is good to keep your site from be exploited by hackers. Below will explain mod_security.

What is mod_security?

Apache (Your web server software) comes with a module called "mod_security" that protects your website from attackers that compromise your site through the web URL's. Code can be added to the end of your web URL that can contains SQL statements. This SQL statement can delete, insert data, or do other damages to your website when mod_security is disabled. A common URL injection looks like the following:

http://www.domain.com/index.php?username=admin'">DROP%20TABLE%20wp-users--

In this case, the database table called users will be deleted from the database with the DROP statement. Servers running mod_security will flag that URL as a Hack attempt and result in a 406 Unacceptable error.

How do I work around mod_security?

If you are getting 406 errors on your site due to mod_security you can do one of the following:

  • Find the Code in the URL causing the error and remove it (Sometimes Foreign languages can cause mod_security to stop the site).
  • Remove the plugin / php code causing it and use a different plugin or php code.
  • Disable mod_security

How do I disable mod_security?

It the event you would like to disable mod_security on your account you can disable it through your cPanel. Please see our article on Disable mod_security via cPanel Modsec Manager to learn how to do this. If for whatever reason you cannot disable mod_security from your cPanel, you can always contact tech support and our support can disable it.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}