bbas-devicer - v0.2.1
    Preparing search index...

    Interface BbasMiddlewareOptions

    interface BbasMiddlewareOptions {
        blockHandler?: (
            req: IncomingMessage,
            res: ServerResponse,
            decision: BotDecision,
        ) => void;
        mode?: "block" | "observe";
    }
    Index

    Properties

    Properties

    blockHandler?: (
        req: IncomingMessage,
        res: ServerResponse,
        decision: BotDecision,
    ) => void

    Custom handler called instead of the default 403 response when mode === 'block' and the decision is 'block'.

    mode?: "block" | "observe"

    'block' (default) — sends 403 Forbidden (or calls blockHandler) when the BBAS decision is 'block'.

    'observe' — never blocks; attaches context and calls next() always. Useful for logging / shadow mode before enabling enforcement.