方法一、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>

相关文章:

  • 2021-10-12
  • 2022-02-03
  • 2021-12-12
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
猜你喜欢
  • 2021-08-30
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-05-25
相关资源
相似解决方案