agent-block
v1.0.2
Published
Block AI agents from reading, snapshotting, and automating your site. Alias for @brainrotcreations/agent-block.
Downloads
122
Maintainers
Readme
agent-block
Ghost AI agents from your site.
@brainrotcreations/agent-block is a zero-dependency frontend library that blocks AI agents from reading, snapshotting, and automating your website.
npm install @brainrotcreations/agent-blockimport { block } from '@brainrotcreations/agent-block';
block();That's it.
How it works
AI agents (Playwright, Puppeteer, agent-browser, browser-use, Vercel AI SDK) read your site using the browser's accessibility tree — a structured map of every interactive element. agent-block continuously scrambles that tree so agents always get stale, unusable data.
- Detects headless browsers via 20+ fingerprint signals
- Intercepts agent-specific DOM operations before they complete
- Rotates ARIA labels on a timer timed to the LLM response window
- Floods the accessibility tree with decoy elements
- Traps agents in honeypots that trigger on any interaction
Packages
| Package | Description |
|---------|-------------|
| @brainrotcreations/agent-block | Core — vanilla JS, zero deps |
| @brainrotcreations/agent-block-react | React provider + hook |
| @brainrotcreations/agent-block-next | Next.js middleware + script |
License
MIT — brainrotcreations
