From 6551c130a6824f44edfb51cf09c44d479f6ea9e3 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Fri, 10 Mar 2023 15:16:29 +0800 Subject: [PATCH] =?UTF-8?q?WAF=20cc2=E6=A8=A1=E6=9D=BF=E4=B8=AD=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=90=AF=E7=94=A8=E6=8C=87=E7=BA=B9=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../firewallconfigs/http_firewall_template.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkg/serverconfigs/firewallconfigs/http_firewall_template.go b/pkg/serverconfigs/firewallconfigs/http_firewall_template.go index 2c13155..e7f1819 100644 --- a/pkg/serverconfigs/firewallconfigs/http_firewall_template.go +++ b/pkg/serverconfigs/firewallconfigs/http_firewall_template.go @@ -555,9 +555,10 @@ func HTTPFirewallTemplate() *HTTPFirewallPolicy { Operator: HTTPFirewallRuleOperatorGt, Value: "120", CheckpointOptions: map[string]interface{}{ - "keys": []string{"${remoteAddr}", "${requestPath}"}, - "period": "60", - "threshold": 120, + "keys": []string{"${remoteAddr}", "${requestPath}"}, + "period": "60", + "threshold": 120, + "enableFingerprint": true, }, IsCaseInsensitive: false, }) @@ -613,9 +614,10 @@ func HTTPFirewallTemplate() *HTTPFirewallPolicy { Operator: HTTPFirewallRuleOperatorGt, Value: "1200", CheckpointOptions: map[string]interface{}{ - "keys": []string{"${remoteAddr}"}, - "period": "60", - "threshold": 1200, + "keys": []string{"${remoteAddr}"}, + "period": "60", + "threshold": 1200, + "enableFingerprint": true, }, IsCaseInsensitive: false, })