InMotion Hosting Support Center

Error 406 - Not Acceptable

2013-08-30 1:58 pm EST

Hits: 1,643
I want to Acces js/jquery.cookie.js in my website and I get error:

An error has occurred. Generally a 406 error is caused because a request has been blocked by Mod Security. If you believe that your request has been blocked by mistake please contact the web site owner.

I can't see an option to disable mod_security from cPanel.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

I have tried . I can do the first step and second one. I can see similar kind of results for the jquery.cookie.js file. But can't disable it, as the 3 command says no such file or directory.
8 Points
2013-08-30 02:14 pm EST
<div style="background-color: #FFF; padding-left: 10px;">Hello opnchaudhary,

When following step <strong>3</strong> on those instructions, did you also read and follow this part?

<p class="alert" style="margin-bottom: -10px;">Note that when we use <strong>&gt;&gt;</strong> this is going to append the rule to our ModSecurity configuration file, so we don't overwrite any previous rules we've allowed as well. If you don't already have your ModSecurity configuration file included in your Apache configuration, be sure to follow my guide on how to <a href="/support/website/website-troubleshooting/disable-modsecurity-for-a-domain" target="_blank">enable ModSecurity include and create a configuration file</a> which covers this.<br><br>It's also <strong>important</strong> to remember you can't have the <strong>SecRuleEngine Off</strong> rule still in your ModSecurity configuration file if you're just disabling specific rules, as it will completely turn off ModSecurity.</p>
What's the domain name you're having these issues with?

- Jacob</div>
9,968 Points
2013-08-30 02:19 pm EST



9,968 Points
2013-08-30 2:17 pm EST
Hello opnchaudhary,

I was unable to locate an account with the email address you've submitted this question under, so I couldn't fix this for you.

You should be able to <a href="" target="_blank">disable ModSecurity via the ModSec manager in cPanel</a> if you're on a shared hosting account. Or you can <a href="" target="_blank">find and disable specific ModSecurity rules</a> if you're on a VPS or dedicated server with <a href="" target="_blank">root access</a>.

Please let us know if you still had any further questions at all.

- Jacob

You must login before you can post a comment about this answer.

I read the note too. Anyways, I have got it fixed now by support. Thanks.
8 Points
2013-08-30 3:05 pm EST
<div style="background-color: #FFF; padding-left: 10px;">Hello opnchaudhary,

Ok great, glad to hear you got it resolved!

- Jacob</div>
9,968 Points
2013-08-30 3:15 pm EST
Like this Question?

Need more Help?


Ask the Community!

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

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!