Update init.lua

pull/149/head
midoks 3 years ago
parent d9e41aaa6d
commit eb58a61859
  1. 17
      plugins/op_waf/waf/lua/init.lua

@ -214,16 +214,15 @@ function cc()
insert_ip_list(ip,lock_time,os.time(),server_name) insert_ip_list(ip,lock_time,os.time(),server_name)
end end
-- ngx.exit(config['cc']['status']) ngx.exit(config['cc']['status'])
-- return true return true
-- else else
-- ngx.shared.limit:incr(token,1) ngx.shared.limit:incr(token,1)
-- end
-- else
-- ngx.shared.limit:set(token,1,cycle)
-- end
-- end
end end
else
ngx.shared.limit:set(token,1,cycle)
end
end
--强制验证是否使用正常浏览器访问网站 --强制验证是否使用正常浏览器访问网站
function waf_cc_increase() function waf_cc_increase()

Loading…
Cancel
Save