Merge c10ccf24fa
into 314a2f62ec
commit
8314f46f5f
|
@ -8,6 +8,7 @@ postMatch="on"
|
|||
whiteModule="on"
|
||||
black_fileExt={"php","jsp"}
|
||||
ipWhitelist={"127.0.0.1"}
|
||||
servernameWhitelist={"www.xx.com"}
|
||||
ipBlocklist={"1.0.0.1"}
|
||||
CCDeny="off"
|
||||
CCrate="100/60"
|
||||
|
|
12
init.lua
12
init.lua
|
@ -243,3 +243,15 @@ function blockip()
|
|||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function whiteSvrName()
|
||||
if next(servernameWhitelist) ~= nil then
|
||||
for _,svrname in pairs(servernameWhitelist) do
|
||||
if ngx.var.server_name == svrname then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue