Update geo-block.lua

pull/104/head
有安科技 2024-09-05 15:42:21 +08:00
parent 574f266877
commit 5e47ad9daa
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@
--]]
if waf.contains(waf.ip,":") then
return false
end
local country, province, city = waf.ip2loc(waf.ip)
if country and country ~= "中国" then
return true, "限制非中国地区访问", true