Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

ModSecurity: Access denied with code 406

Discussion in 'Security' started by ansh0286, Feb 24, 2017.

Tags:
  1. ansh0286

    ansh0286 Registered

    Joined:
    Feb 24, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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 "WK@vDmc1Ky0ADDnXjJ8AAAGB"]
    
    so will you please update how to resolve this ?

    Thanks
    Anshul Sharma
     
    #1 ansh0286, Feb 24, 2017
    Last edited by a moderator: Feb 24, 2017
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice