@aikidosec/firewall
Version:
Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.
14 lines (13 loc) • 571 B
TypeScript
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 {};