Check, test and generate robots.txt files
Find mistakes in any robots.txt with line numbers, test whether a crawler may visit a page,
see which AI bots a site blocks, and block AI bots in one line. One tiny package, no dependencies.
check · validate · test · generate · AI bots · RFC 9309 · CLI · no dependencies
GitHub · npm · 🌐 aibotsdb.com
robots.txt
The robots.txt toolkit: validate files with clear messages and line numbers, test any URL for any crawler using the official RFC 9309 rules, see which of 170+ AI bots a site blocks, and generate files that block AI bots by purpose. CLI and library for Node.js, Deno, Bun, browsers and edge runtimes.
ai-bots-db
The open database of AI crawlers & bots: who runs each one, its official IP ranges, and how to block it.
llms-dot-txt
Generate, validate and parse llms.txt files: tell the AI bots you allow what to read.
user-agents.txt
Plain-text lists of bot user-agents by purpose: AI bots, search engines, SEO tools, monitoring and more.
| You want | Run |
|---|---|
| Check a website's robots.txt | npx @robotstxt/robots.txt check example.com |
| See if a bot may visit a page | npx @robotstxt/robots.txt test example.com GPTBot /blog/ |
| Find mistakes before you publish | npx @robotstxt/robots.txt validate public/robots.txt |
| Block AI training bots | npx @robotstxt/robots.txt generate --block-ai training -o robots.txt |
| Use it in JavaScript / TypeScript | npm install @robotstxt/robots.txt |
Found a robots.txt that gets a wrong result? Report it with the URL, the crawler and the path. To add or fix an AI bot, contribute to AI Bots DB; it flows in every week. See CONTRIBUTING.md.
robots-dot-txt is free and always will be. ⭐ Star the repo to follow updates, or become a sponsor to support the whole AI Bots DB family.
Code: MIT · Not affiliated with any of the companies whose crawlers are listed.