The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page