...
|
...
|
@@ -157,7 +157,7 @@ function forbid_ua() |
|
|
local ua = http_request.get_ua()
|
|
|
for i = 1, #forbid_ua_table do
|
|
|
if ua and string.find(ua, forbid_ua_table[i]) then
|
|
|
ngx.log(ngx.ERR, "[User-Agent Not Allowed]", ua)
|
|
|
ngx.log(ngx.ERR, "[User-Agent Not Allowed]: ", ua)
|
|
|
ngx.exit(ngx.HTTP_OK)
|
|
|
end
|
|
|
end
|
...
|
...
|
|