Add files via upload
This commit is contained in:
9
whiteList.lua
Normal file
9
whiteList.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
function whiteExtCheck()
|
||||
local reqExt = string.match(ngx.var.uri, ".+%.(%w+)$") --js
|
||||
for _,e in ipairs(whiteExt) do -- js、css、png
|
||||
if reqExt == e then -- 在白名单里
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
Reference in New Issue
Block a user