antibot - fix LUA typo in recaptcha mode
This commit is contained in:
parent
178d7a6849
commit
a0f8cbdac1
|
@ -6,7 +6,7 @@ location = {{ ANTIBOT_URI }} {
|
|||
content_by_lua_block {
|
||||
local cookie = require "cookie"
|
||||
local recaptcha = require "recaptcha"
|
||||
local loggger = require "logger"
|
||||
local logger = require "logger"
|
||||
if not cookie.is_set("uri") then
|
||||
logger.log(ngx.WARN, "ANTIBOT", "recaptcha fail (1) for " .. ngx.var.remote_addr)
|
||||
return ngx.exit(ngx.HTTP_FORBIDDEN)
|
||||
|
|
Loading…
Reference in New Issue