ModSecurity: Access denied with code 406

ansh0286

Registered
Feb 24, 2017
1
0
1
India
cPanel Access Level
Website Owner
Hello

I have a domain name example.com today i am getting this error

502 Bad Gateway
The server returned an invalid or incomplete response.

I tried to contact support they said there is an issue with mod security issue
Code:
ModSecurity: Access denied with code 406 (phase 1). Pattern match "Mozilla\\\\/5\\\\.0 \\\\(compatible; AhrefsBot\\\\/\\\\d\\\\.\\\\d; \\\\+http:\\\\/\\\\/ahrefs\\\\.com\\\\/robot\\\\/\\\\)" at REQUEST_HEADERS:User-Agent. [file "/usr/local/apache/conf/crs/activated_rules/eig_rules.conf"] [line "118"] [id "900165"] [msg "AhrefsBot BOT Request"] [hostname "example.com"] [uri "/robots.txt"] [unique_id "[email protected]"]
so will you please update how to resolve this ?

Thanks
Anshul Sharma
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

Could you verify how you are reproducing the issue? Are you accessing the website with a specific browser, or is this a message you see in the logs?

Thank you.