Browse Source

Update anti-cc.lua

pull/8/head
有安科技 2 years ago committed by GitHub
parent
commit
41c37b9d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      rules/anti-cc.lua

2
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 waf.block(true)
return true, ccIp, true
end
sh:incr(ccIp, 1)
if c >= 360 then

Loading…
Cancel
Save