diff --git a/internal/nodes/http_request_waf.go b/internal/nodes/http_request_waf.go index c2846cb..5cc9c51 100644 --- a/internal/nodes/http_request_waf.go +++ b/internal/nodes/http_request_waf.go @@ -175,7 +175,7 @@ func (this *HTTPRequest) checkWAFRequest(firewallPolicy *firewallconfigs.HTTPFir if countryId > 0 && lists.ContainsInt64(regionConfig.DenyCountryIds, countryId) { this.firewallPolicyId = firewallPolicy.Id - this.writeCode(http.StatusForbidden, "", "") + this.writeCode(http.StatusForbidden, "The region has been denied.", "当前区域禁止访问") this.writer.Flush() this.writer.Close() @@ -196,7 +196,7 @@ func (this *HTTPRequest) checkWAFRequest(firewallPolicy *firewallconfigs.HTTPFir if provinceId > 0 && lists.ContainsInt64(regionConfig.DenyProvinceIds, provinceId) { this.firewallPolicyId = firewallPolicy.Id - this.writeCode(http.StatusForbidden, "", "") + this.writeCode(http.StatusForbidden, "The region has been denied.", "当前区域禁止访问") this.writer.Flush() this.writer.Close()