prorm API Reference
    Preparing search index...

    Interface FirewallOptions

    interface FirewallOptions {
        mode?: FirewallMode | FirewallModeEnum;
        blockDangerousByDefault?: boolean;
        onBlock?: (blocked: BlockedQuery) => void;
        onAllow?: (analysis: QueryAnalysis) => void;
        maxHistory?: number;
        logAllQueries?: boolean;
        caseInsensitive?: boolean;
        rules?: { type: FirewallRuleType; pattern: string; description?: string }[];
        frameworks?: string[];
    }
    Index

    Firewall mode: allowlist (only allow matching), blocklist (block matching), strict (both)

    blockDangerousByDefault?: boolean

    Default blocked patterns for dangerous operations

    onBlock?: (blocked: BlockedQuery) => void

    Callback when a query is blocked

    onAllow?: (analysis: QueryAnalysis) => void

    Callback when a query is allowed

    maxHistory?: number

    Maximum blocked queries to keep in history

    logAllQueries?: boolean

    Log all queries (including allowed)

    caseInsensitive?: boolean

    Enable case-insensitive matching

    rules?: { type: FirewallRuleType; pattern: string; description?: string }[]

    Custom rules to apply at startup

    frameworks?: string[]

    Active compliance frameworks for auto-configuration