robots.txt Generator: Block GPTBot and Other AI Crawlers
Build a robots.txt that blocks GPTBot, ClaudeBot and 14 other AI crawlers one by one, then test any URL against each bot before you publish the file.
Updated November 2026
Reviewed by Rafael Duarte
Training (LLMs)
GPTBot
OpenAI
Google-Extended
anthropic-ai
Anthropic
CCBot
Common Crawl
Bytespider
ByteDance
Applebot-Extended
Apple
Amazonbot
Amazon
cohere-ai
Cohere
ClaudeBot
Anthropic
Meta-ExternalAgent
Meta
FacebookBot
Meta
Browsing & Real-time
OAI-SearchBot
OpenAI
ChatGPT-User
OpenAI
Claude-SearchBot
Anthropic
Claude-User
Anthropic
PerplexityBot
Perplexity
Checked = allow crawling. Unchecked = Disallow: / injected for that User-agent.
Global Rules (User-agent: *)
Allowed Paths
Blocked Paths
Custom User-agent Blocks
No custom directives. Add a block below to target specific crawlers.
Sitemap URLs
Generate a context file for AI systems — the emerging standard for AI-friendly site documentation.
How to use this robots.txt generator
From a template to a tested, ready-to-deploy file
1. Pick a template
Blog, E-commerce, SaaS, Enterprise, or News — each one pre-fills the rules that site type needs most.
2. Configure the AI bots
Allow or block each of the 16 AI crawlers individually, or flip "Block All" to disallow every one at once.
3. Test a URL and export
Check whether a path would be allowed or blocked before you copy or download the final robots.txt.
What this robots.txt generator does
Built for the era of AI crawlers, not just search engines
16 individual AI bot toggles
GPTBot, ClaudeBot, PerplexityBot, Google-Extended, Bytespider and more, each with its own checkbox, split into training and browsing groups. Everything starts allowed; uncheck a bot to block it.
Built-in URL tester
Enter any path and user-agent to see whether it's allowed or disallowed, plus the exact rule and line number that decided it.
llms.txt generator
Create the emerging llms.txt file alongside your robots.txt to describe your site to AI systems in plain language.
Site-type templates
Blog, E-commerce, SaaS, Enterprise, and News presets fill in the disallow paths each site type typically needs.
Compare with your published robots.txt
Under Fetch Live, enter your domain and click Fetch. The browser usually can't read another site's file directly, so the tool offers a link to open yourdomain.com/robots.txt and a box to paste its content. Then click Diff to compare it line by line with your draft before you replace it.
Real-time validator
Catches accidental full-site blocks, missing sitemaps, malformed paths, and duplicate user-agent blocks as you type.
Rule examples
How common paths resolve once the file is generated
When you'll reach for this tool
The scenarios that come up most often
Blocking faceted navigation
E-commerce sites generate near-duplicate URLs from filters and sorting — disallow /*? patterns to stop them from burning crawl budget.
Shielding the admin panel
Add a Disallow rule for /admin/ and /wp-login.php as a courtesy to crawlers, on top of real authentication, not instead of it.
Declaring your sitemap
List the sitemap URL so every crawler that respects robots.txt can discover your pages automatically.
Keeping content out of AI training data
Publishers block GPTBot and CCBot, and opt out with the Google-Extended token, to keep original content from feeding future model training.
Common mistakes
Small robots.txt errors with outsized consequences
Blocking pages you actually want indexed
Disallow: /blog/ stops Googlebot from crawling your entire blog. Only disallow what genuinely shouldn't be crawled.
Confusing crawling with indexing
A blocked URL can still show up in search results if other sites link to it. Use a noindex meta tag when the goal is to keep a page out of results entirely.
Forgetting the trailing slash
Disallow: /admin blocks everything that starts with /admin — including /admin/, /administrator and /admin.php. Use Disallow: /admin/ to limit it to the folder, or $ to anchor the end (Disallow: /admin$).
Why use this robots.txt generator
Most robots.txt generators still treat AI crawlers as an afterthought, if they mention them at all. This one gives you individual control over 16 named AI bots — split by whether they scrape for training data or for live search results — instead of one generic "block all AI" checkbox.
The built-in URL tester removes the guesswork: you confirm a rule behaves exactly as intended before you publish. Paste your current robots.txt and the Diff view shows what changes compared with the file that's already live, so you don't overwrite a rule you forgot about.
Training crawlers vs. browsing crawlers
Not every AI bot serves the same purpose
Frequently asked questions
Add a separate User-agent block with Disallow: / for each crawler you want to exclude — there's no single wildcard that targets "all AI bots" and nothing else. This generator's "Block All" toggle does exactly that for its full list of 16 known AI crawlers in one click.
It stops OpenAI from crawling your site for future model training data, but it's a separate decision from OAI-SearchBot, which powers ChatGPT's live web search and can drive referral traffic back to you. Many sites block one and allow the other.
robots.txt controls crawling — whether a bot is allowed to fetch a URL at all. A meta robots tag controls indexing — whether a page that was already crawled gets shown in search results. Blocking a URL in robots.txt doesn't guarantee it stays out of the index if other sites link to it.
llms.txt is a convention proposed in September 2024 (llmstxt.org) — not an official W3C or IETF standard — for giving AI systems a curated, human-written summary of a site's key pages, similar in spirit to a sitemap but meant for language models rather than search crawlers. It's optional, but low-cost to add if you already want AI systems to cite your content accurately. The generated file includes a fixed line ("This file helps AI systems understand and accurately reference content from this site.") that you can edit before publishing.
It's a common middle ground. Training crawlers such as GPTBot, ClaudeBot and CCBot collect content for future models, while OAI-SearchBot, Claude-SearchBot and PerplexityBot fetch pages for AI search answers, which can cite and link to you. In this tool, uncheck only the bots in the training group and leave the browsing group checked, then use the URL tester to confirm GPTBot is blocked and OAI-SearchBot is allowed.
No. Google-Extended isn't a crawler with its own user agent; it's a robots.txt token Google reads to decide whether crawled content may be used to train Gemini models and for grounding in Gemini Apps and Vertex AI. Google says it doesn't affect inclusion or ranking in Search. AI Overviews are part of Search, so they follow Googlebot's rules and snippet controls such as nosnippet, max-snippet or noindex.
Only indirectly. Blocking low-value URLs (internal search results, filtered/faceted pages, admin routes) helps search engines spend their crawl budget on pages that matter. It has no direct effect on rankings, and accidentally blocking pages you want indexed will hurt them.
Paste the path and pick a user-agent in the URL tester panel — it follows the same logic as Google and RFC 9309 (only the group naming that bot applies, falling back to User-agent: * if none does; longest matching rule wins; Allow beats Disallow on a tie) and shows which group and line decided the result.
References
Official documentation on robots.txt syntax and how Google's crawlers interpret it.
How to identify and opt out of crawling for OpenAI's model training bot.
The formal internet standard that defines how robots.txt directives must be parsed.
Google's list of its crawlers and tokens, including what the Google-Extended token controls.
Related Tools
- Meta Tag Generator: SEO, Open Graph & Twitter Card Tags Marketing Enter a title and description to generate SEO, Open Graph and Twitter Card meta tags, with a Google snippet preview. Copy or download the HTML block.
- SERP Preview Tool: Google Title & Meta Description Checker Marketing See how your title, meta description and URL look in Google on desktop and mobile, with pixel-width truncation warnings, keyword bolding and rich snippets.
- Reading Time Calculator: Words to Minutes, Read & Speak Marketing Paste your text to see how long it takes to read silently (3 speeds, 5 complexity levels) and to say out loud at a 130 WPM presentation pace. Free.
- Word Counter — Free Online Word & Character Count Marketing Free online word counter — count words, characters, paragraphs and reading time instantly. Detailed text analysis with keyword density.
- Word Frequency Counter & Analyzer: Most Repeated Words Marketing Paste text to rank its most repeated words and 2- or 3-word phrases by count and density. Skips stop words and exports to CSV or JSON.