UNPKG

next-ai-defence

Version:

Defend against LLM-based web scrapers in Next.js applications

15 lines (14 loc) 519 B
/** * Converts regular text to hidden Unicode Tag characters * that are invisible to humans but can be processed by LLMs */ export declare function encodeToTags(text: string): string; /** * Creates text with hidden ASCII smuggled content */ export declare function createSmuggledText(hiddenMessage: string, visiblePrefix?: string, visibleSuffix?: string): string; /** * Extracts hidden text from Unicode Tag characters * (For debugging purposes) */ export declare function decodeFromTags(text: string): string;