【问题标题】:ModSecurity - Is there a way to configure DetectionOnly per RuleModSecurity - 有没有办法根据规则配置 DetectionOnly
【发布时间】:2020-02-24 10:08:51
【问题描述】:

使用 Mod-Security 我想让我的生产系统阻止请求(SecRuleEngine On),但对于某些规则(可能随 RuleSet 的更新提供)我想得到通知。这应该有助于我在将规则真正投入生产之前识别误报。

换句话说,我想为规则列表配置DetectionOnly,而其他规则仍然被阻止。

有没有办法使用 ModSecurity 进行配置?

【问题讨论】:

    标签: mod-security


    【解决方案1】:

    您可以更新特定规则,如下所示:

    SecRuleUpdateActionById 12345 "pass,log"
    

    或者,您可以编写自己的规则来关闭特定场景的规则引擎。例如看这个问题:Set mod_security to detectionOnly for a specific page?

    【讨论】:

      猜你喜欢
      • 2021-12-21
      • 1970-01-01
      • 2020-09-22
      • 1970-01-01
      • 1970-01-01
      • 2020-02-11
      • 2022-11-11
      • 2018-08-04
      • 1970-01-01
      相关资源
      最近更新 更多