Commit 4117e55e by Joneq

增加google验证条状

parent 08141526
Showing with 3 additions and 1 deletions
...@@ -25,8 +25,10 @@ function _ReM.checkgoogle() ...@@ -25,8 +25,10 @@ function _ReM.checkgoogle()
red:incr(threezerotwo_ip) red:incr(threezerotwo_ip)
red:expire(threezerotwo_ip , threezerotwo_second) red:expire(threezerotwo_ip , threezerotwo_second)
nownum,err = red:get(threezerotwo_ip)
--如果超过次数就添加至黑名单 --如果超过次数就添加至黑名单
if tonumber(red:get(threezerotwo_ip)) >= 3 then if tonumber(nownum) >= 3 then
red:sadd('ichunt_waf_black_ip',user_ip) red:sadd('ichunt_waf_black_ip',user_ip)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment