UNPKG

@aikidosec/firewall

Version:

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

21 lines (20 loc) 477 B
import { Agent } from "../agent/Agent"; import { Endpoint } from "../agent/Config"; import { Context } from "../agent/Context"; type Result = { block: false; } | { block: true; trigger: "ip"; endpoint: Endpoint; } | { block: true; trigger: "user"; endpoint: Endpoint; } | { block: true; trigger: "group"; endpoint: Endpoint; }; export declare function shouldRateLimitRequest(context: Readonly<Context>, agent: Agent): Result; export {};