mirror of https://github.com/Safe3/uuWAF
Update anti-cc.lua
parent
435948edef
commit
81b5b01eb8
|
@ -20,7 +20,7 @@ if not c then
|
||||||
sh:set(ccIp, 0, 60, 1) -- 设置1分钟也就是60秒访问计数时间
|
sh:set(ccIp, 0, 60, 1) -- 设置1分钟也就是60秒访问计数时间
|
||||||
else
|
else
|
||||||
if f == 2 then
|
if f == 2 then
|
||||||
return ngx.exit(403)
|
return waf.block(true)
|
||||||
end
|
end
|
||||||
sh:incr(ccIp, 1)
|
sh:incr(ccIp, 1)
|
||||||
if c >= 360 then
|
if c >= 360 then
|
||||||
|
|
Loading…
Reference in New Issue