首页 > 其他 > 详细

ModSecurity 白名单设置

时间:2016-04-19 19:18:32      阅读:1039      评论:0      收藏:0      [点我收藏+]

方法一、SecRuleRemoveById 指令:通过Rule ID禁用指定规则


#waf whitelist
<LocationMatch .*>
SecRuleRemoveById 960017 #allow Host Header is a IP address
</LocationMatch>


方法二、SecRuleRemoveByMsg指令:通过Rule Msg禁用指定规则


#waf whitelist
<LocationMatch .*>
SecRuleRemoveByMsg "Host header is a numeric IP address"
</LocationMatch>


方法三、url加白 :对指定路径关闭WAF检测/或只记录不拦截


<LocationMatch /xss.php>
SecRuleEngine DetectionOnly
</LocationMatch>

ModSecurity 白名单设置

原文:http://www.cnblogs.com/itfenqing/p/5409263.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!