Windows系统下Apache自动封禁IP地址的解决方案咨询
Windows系统下Apache自动封禁IP地址的解决方案咨询
各位好,我之前在Linux环境里折腾mod_evasive来实现Apache的IP自动封禁,试过好几种配置组合,但每次用压测脚本跑出来的拦截命中结果都不一致,完全摸不着规律。
先贴一下我之前在Linux上用的mod_evasive配置:
<IfModule mod_evasive20.c> DOSHashTableSize 1009 DOSPageCount 10 DOSSiteCount 10 DOSPageInterval 60 DOSSiteInterval 60 DOSBlockingPeriod 60 DOSLogDir "/var/log/mod_evasive" </IfModule>
测试用的是Apache Bench命令:
ab -n 200 -c 1 http://localhost/api/
现在我要把这套IP封禁的需求迁移到Windows系统上的Apache,有没有大佬能给点实际可用的方案?不管是适配Windows的mod_evasive配置方法,还是替代的封禁工具都可以,麻烦指点一下!
备注:内容来源于stack exchange,提问作者Shaheryar
相关产品推荐
相关产品推荐

