优化WAF策略默认设置

* 增加JSCookie动作选项
* 拦截动作增加“失败全局封禁”选项
* 人机识别动作增加“失败全局封禁”选项
* IP名单中的“服务”文字改为“网站”
This commit is contained in:
GoEdgeLab
2024-04-07 14:20:17 +08:00
parent a5db18edd6
commit af4d19ee5a
12 changed files with 253 additions and 42 deletions

View File

@@ -52,7 +52,7 @@ func (this *IndexAction) RunGet(params struct {
}
if firewallPolicy != nil {
// captcha action
var captchaOptions = firewallconfigs.DefaultHTTPFirewallCaptchaAction()
var captchaOptions = firewallconfigs.NewHTTPFirewallCaptchaAction()
if len(firewallPolicy.CaptchaOptionsJSON) > 0 {
err = json.Unmarshal(firewallPolicy.CaptchaOptionsJSON, captchaOptions)
if err != nil {