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!

OWASP ModSecurity Core Rule Set V3.0 whm-server-status

Discussion in 'Workarounds and Optimization' started by rpvw, Aug 18, 2017.

  1. rpvw

    rpvw Well-Known Member

    Jul 18, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    For anyone irritated by the ModSecurity Tools logged Hits every 5 minutes generated by the 'GET /whm-server-status' triggering rule id 920280 .......... this is for you :)

    1) Go to Home » Security Center » ModSecurity™ Tools » Rules List and make sure you don't already have a rule id 1000 (if you do, alter the rule id:1000 in the code below to anything that does not already exist, but is below 920280 - I recommend you try and keep your Custom rules below 900000)

    2) Click on the Add Rule blue button

    3) Paste the following code into the Rule Text Box
    # This chained rule looks for the whm-server-status script being called from localhost
    # If both the rules validate, the rule id 920280 is disabled for this transaction
    SecRule REQUEST_URI "whm-server-status" id:1000,phase:1,t:none,pass,nolog,chain
    SecRule REMOTE_ADDR "@ipMatch" t:none,nolog,ctl:ruleRemoveById=920280
    4) Check the Enable Rule and also the Deploy and Restart Apache boxes.

    5) Click Save

    Done - you should not see any more logged hits for GET /whm-server-status if the call came from localhost.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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