Hi everyone! I'm setting up an OpenResty bouncer but I need it chain it before a different module (which is a custom DDoS protection script) so that the module that follows after the bouncer is the final one that completes the request. My
access_by_lua_block
access_by_lua_block
is roughly as follows:
-- sniplocal bouncer = require "lua/bouncer"bouncer.bounce()-- DDoS protection script is called here and must be called last
-- sniplocal bouncer = require "lua/bouncer"bouncer.bounce()-- DDoS protection script is called here and must be called last
The contents of
bouncer
bouncer
are as follows:
local function bounce() { local cs = require("crowdsec") cs.Allow(remote_addr)}
local function bounce() { local cs = require("crowdsec") cs.Allow(remote_addr)}
In a configuration like this, the bouncer processes the request so the visitor reaches the page without DDoS check ever being triggered.
My question is -- is it possible to intercept/override the behavior of the bouncer to allow the request to continue? Thanks in advance!