Browse Source

Merge branch 'main' of https://github.com/Safe3/uuWAF

pull/60/head
有安科技 1 year ago
parent
commit
c95cc6f850
  1. 18
      rules/ip-block.lua

18
rules/ip-block.lua

@ -0,0 +1,18 @@
--[[
: IP block
:
:
: IP进行封禁IP黑名单
--]]
local ip = waf.ip
if waf.contains(ip,"10.20.11.193") then
return waf.block(true) -- 重置TCP连接,不记录日志
end
return false
Loading…
Cancel
Save