@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
9 lines (8 loc) • 399 B
TypeScript
import type { ServerResponse } from "http";
import { Agent } from "../../agent/Agent";
/**
* Inspects the IP address 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)
*/
export declare function checkIfRequestIsBlocked(res: ServerResponse, agent: Agent): boolean;