UNPKG

bot-guardian-js

Version:

A powerful bot detection and prevention library for Node.js applications

25 lines (24 loc) 595 B
export interface GuardianConfig { threshold: number; enableBehaviorAnalysis: boolean; enableTLSFingerprinting: boolean; enableUserAgentAnalysis: boolean; timeoutMs: number; maxRequestsPerMinute: number; whitelist: { ips: string[]; userAgents: string[]; paths: string[]; }; blacklist: { ips: string[]; userAgents: string[]; patterns: RegExp[]; }; customRules?: CustomRule[]; } export interface CustomRule { name: string; condition: (req: any) => boolean | Promise<boolean>; weight: number; }