fix user-agent not blocking and add documentation on bundle when USE_CUSTOM_HTTPS=yes
This commit is contained in:
@@ -96,7 +96,7 @@ end
|
||||
|
||||
-- check if user-agent is allowed
|
||||
if use_user_agent and ngx.var.bad_user_agent == "yes" then
|
||||
local block = false
|
||||
local block = true
|
||||
for k, v in pairs(whitelist_user_agent) do
|
||||
if string.match(ngx.var.http_user_agent, v) then
|
||||
ngx.log(ngx.NOTICE, "[ALLOW] User-Agent " .. ngx.var.http_user_agent .. " is whitelisted")
|
||||
|
||||
Reference in New Issue
Block a user