Apache mod_security blocking country

五迷三道 提交于 2019-12-11 09:54:42

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!