Merge pull request #26 from puhui222/patch-4

IP黑名单规则
pull/60/head
有安科技 2023-10-24 09:53:15 +08:00 committed by GitHub
commit 44b413c189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

18
rules/ip-block.lua Normal file
View File

@ -0,0 +1,18 @@
--[[
: IP block
:
:
: IPIP
--]]
local ip = waf.ip
if waf.contains(ip,"10.20.11.193") then
return waf.block(true) -- 重置TCP连接不记录日志
end
return false