Error 406 unacceptable

Error 406: Not Acceptable

 

A 406 error means the server cannot produce a response matching the criteria the browser requested. On our hosting servers, this error is most commonly triggered by ModSecurity (our web application firewall) blocking a request it considers suspicious.

 

Common Causes

  • Form submission blocked: ModSecurity may flag form data that resembles SQL injection or cross-site scripting patterns, even when the input is legitimate
  • File upload blocked: Uploading files with certain content patterns can trigger a security rule
  • URL patterns: Certain URL structures or query strings may match a firewall rule

 

How to Fix It

Open a support ticket with the exact URL that triggers the error and what you were doing when it occurred (submitting a form, uploading a file, etc.). Our team can review the ModSecurity logs, identify which rule was triggered, and add an exception so the legitimate request is allowed through while keeping the security protection active for real threats.

 

Do not disable ModSecurity entirely to fix a 406 error. It is better to add a targeted exception for the specific rule causing the false positive.

  • 444 Users Found This Useful

Was this answer helpful?

Related Articles

Premature end of script headers

The error message Premature end of script headers means that the PHP script stopped executing...

Internal Server Error with PHPList

PHPList produces internal server error. Checking error logs results in:Invalid command...

403 Error on POST

This can occur for several reasons: Be sure your file permissions are correct. If the file needs...

How do I customize error messages for my site?

Creating Custom Error Pages   You can replace the default server error pages with your own...



Save 30% on web hosting - Use coupon code Hosting30