WAF模板中特殊目录增加.env

This commit is contained in:
GoEdgeLab
2022-01-09 20:29:46 +08:00
parent 811f0ff9c1
commit f0e95d4bc6

View File

@@ -252,7 +252,7 @@ func HTTPFirewallTemplate() *HTTPFirewallPolicy {
IsOn: true,
Param: "${requestPath}",
Operator: HTTPFirewallRuleOperatorMatch,
Value: `/\.(git|svn|htaccess|idea)\b`, // TODO more keywords here
Value: `/\.(git|svn|htaccess|idea|env)\b`, // TODO more keywords here
IsCaseInsensitive: true,
})
group.AddRuleSet(set)