码迷,mamicode.com
首页 > 其他好文 > 详细

ModSecurity 白名单设置

时间:2016-04-19 19:19:52      阅读:683      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!