You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
uuWAF/rules/geo-block.lua

21 lines
371 B

--[[
: 访
:
:
2 months ago
: 访
--]]
if waf.contains(waf.ip,":") then
return false
end
local country, province, city = waf.ip2loc(waf.ip)
2 months ago
if country ~= "中国" and city ~= "内网IP" then
return true, "限制非大陆地区访问", true
end
return false