waf规则文件拉取脚本
This commit is contained in:
1 parent
c028e46d00
commit
15a4bac484
2 files changed
+152
No files matched your search
@@ -4,8 +4,15 @@
|
||||
# - 修改后执行 `kill -HUP <pid>` 热加载
|
||||
# - 校验语法: `waf -test rules/local/xxx.conf`
|
||||
#
|
||||
# 加载顺序(engine.Reload):
|
||||
# 1. waf.conf ← 本文件(引擎基础配置)
|
||||
# 2. local/*.conf 本地自定义规则(按文件名字母序)
|
||||
# 3. crs/coraza.conf OWASP CRS 入口(若存在)
|
||||
# 4. crs/rules/*.conf OWASP CRS 规则(按文件名字母序)
|
||||
#
|
||||
# 规则 ID 分段约定:
|
||||
# 100000-199999 本地自定义规则
|
||||
# 200000-200006 请求体处理器初始化(crs/coraza.conf)
|
||||
# 900000-999999 OWASP CRS(由 crs/ 提供,不手改)
|
||||
#
|
||||
# 注意:本文件不用 Include 指令(coraza 的 Include 路径相对于 cwd 解析,
|
||||
@@ -16,6 +23,7 @@ SecRuleEngine On
|
||||
SecRequestBodyAccess On
|
||||
SecResponseBodyAccess On
|
||||
SecDefaultAction "phase:1,pass,log,auditlog"
|
||||
SecDefaultAction "phase:2,pass,log,auditlog"
|
||||
|
||||
# 请求体限制 10MB
|
||||
SecRequestBodyLimit 10485760
|
||||
|
||||
Reference in new issue
Block a user