UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks

14 lines (13 loc) 316 B
import { Agent } from "../agent/Agent"; import { Context } from "../agent/Context"; type Result = { block: false; } | { block: true; trigger: "ip"; } | { block: true; trigger: "user"; }; export declare function shouldRateLimitRequest(context: Readonly<Context>, agent: Agent): Result; export {};