Update anti-cc.lua

pull/8/head
有安科技 2022-09-22 19:16:37 +08:00 committed by GitHub
parent 435948edef
commit 81b5b01eb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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