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) 571 B
import type { ServerResponse } from "http"; import { Agent } from "../../agent/Agent"; declare const checkedBlocks: unique symbol; /** * Inspects the IP address and user agent of the request: * - Whether the IP address is blocked by an IP blocklist (e.g. Geo restrictions) * - Whether the IP address is allowed to access the current route (e.g. Admin panel) * - Whether the user agent is blocked by a user agent blocklist */ export declare function checkIfRequestIsBlocked(res: ServerResponse & { [checkedBlocks]?: boolean; }, agent: Agent): boolean; export {};