UNPKG

@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.

9 lines (8 loc) 481 B
// @ts-ignore import type { Env, Hono, Schema } from "hono"; /** * Calling this function will setup rate limiting and user blocking for the provided Hono app. * Attacks will still be blocked by Zen if you do not call this function. * Execute this function as early as possible in your Hono app, but after the middleware that sets the user. */ export declare function addHonoMiddleware<E extends Env, S extends Schema, BasePath extends string>(app: Hono<E, S, BasePath>): void;