mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-23 13:25:18 +08:00
优化WAF策略默认设置
* 增加JSCookie动作选项 * 拦截动作增加“失败全局封禁”选项 * 人机识别动作增加“失败全局封禁”选项 * IP名单中的“服务”文字改为“网站”
This commit is contained in:
@@ -39,7 +39,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 {
|
||||
|
||||
Reference in New Issue
Block a user