From 81b5b01eb83981f41c95ead645999d3cbb800664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=89=E5=AE=89=E7=A7=91=E6=8A=80?= Date: Thu, 22 Sep 2022 19:16:37 +0800 Subject: [PATCH] Update anti-cc.lua --- rules/anti-cc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/anti-cc.lua b/rules/anti-cc.lua index d6e342b..502416b 100644 --- a/rules/anti-cc.lua +++ b/rules/anti-cc.lua @@ -20,7 +20,7 @@ if not c then sh:set(ccIp, 0, 60, 1) -- 设置1分钟也就是60秒访问计数时间 else if f == 2 then - return ngx.exit(403) + return waf.block(true) end sh:incr(ccIp, 1) if c >= 360 then