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!

cpanel modsec rule raise error

Discussion in 'Security' started by prakashnplink, Feb 21, 2016.

  1. prakashnplink

    prakashnplink Active Member

    Joined:
    Apr 8, 2014
    Messages:
    32
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    I have following rule in my /usr/local/apache/conf/modsec2.user.conf file:

    SecGeoLookupDb /usr/share/geoip/GeoLiteCity.dat
    SecRule REMOTE_ADDR "@geoLookup" "phase:1,id:'11111',t:none,pass,log,noauditlog"

    I think this is right but when I see /usr/local/apache/logs/error_log I see following error:

    [Sat Feb 20 02:04:23.469432 2016] [:error] [pid 15993] [client 93.189.102.202] ModSecurity: Warning. Geo lookup for "93.189.102.202" succeeded. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "13"] [id "11111"] [hostname "somesite.com"] [uri "/css/bootstrap.min.css"] [unique_id "Vsd4y55FgooAAD55TBcAAAAK"]

    Anyone know what I am doing wrong here?

    PS: I have disabled full modsec logging.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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