Skip to main content

ModSecurity Hits List Status Code

Comments

2 comments

  • cPanelMichael
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • linux4me2
    I may be wrong, but if you have the log action included in your rule, you're going to get an entry in your Apache error log and ModSecurity audit log. I don't know where Wordfence pulls the data in its log. I would try the following modifications to your rule, which sets the status to 403, includes a status of "INFO", and does not log the entry, but it will still include a message in your Hits list, including the country code of the country that is blocked:
    SecRule REMOTE_ADDR "@geoLookup" "phase:1,chain,id:1,drop,severity:INFO,status:403,msg:'Blocking %{geo.country_code}'" SecRule GEO:COUNTRY_CODE "@pm XX YY ZZ"
    0

Please sign in to leave a comment.