antibot - fix LUA typo in recaptcha mode

This commit is contained in:
florian 2021-09-13 21:26:09 +02:00
parent 178d7a6849
commit a0f8cbdac1
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
1 changed files with 1 additions and 1 deletions

View File

@ -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)