问题
I used this rule to block country in Mod_security : (I already configured @geoLookup with the maxmide lite database .dat)
# Test IP address and block by country code
SecRule REMOTE_ADDR "@geoLookup" "phase:1,chain,id:10,drop,log,msg:'Blocking China IP Address'"
SecRule GEO:COUNTRY_CODE "@streq CN"
But it doesn't work, no ip logged. I tried with a different country and it does not work.
Any help?
Thank you.
来源:https://stackoverflow.com/questions/33611280/apache-mod-security-blocking-country