|
|
@ -91,6 +91,7 @@ function whiteurl() |
|
|
|
end |
|
|
|
end |
|
|
|
function fileExtCheck(ext) |
|
|
|
function fileExtCheck(ext) |
|
|
|
local items = Set(fileExtension) |
|
|
|
local items = Set(fileExtension) |
|
|
|
|
|
|
|
ext=string.lower(ext) |
|
|
|
if ext then |
|
|
|
if ext then |
|
|
|
if not items[ext] then |
|
|
|
if not items[ext] then |
|
|
|
log('POST',ngx.var.request_uri,"-","file attack with ext "..ext) |
|
|
|
log('POST',ngx.var.request_uri,"-","file attack with ext "..ext) |
|
|
|