robots.txt generator
Write a robots.txt file that allows or blocks each AI crawler, with presets by kind, private paths and a sitemap line. Live preview, copy or download.
robots.txt
# Everyone else User-agent: * Allow: /
0 of 19 AI crawlers blocked. The file is 39 bytes.
Where it goes
Save it as /robots.txt at the root of the host, one file per subdomain. Crawlers may keep an old copy for up to 24 hours. Everything runs in your browser; nothing you choose is sent anywhere.
CrispStats reports AI crawler hits sent from your edge or middleware on its AI traffic page, so you can see whether a rule is followed. Each crawler has its own page in the crawler directory.
How do you block AI crawlers with this generator?
Choose allow or block for each AI crawler, add any private paths and your sitemap, and the tool writes a valid robots.txt file as you go. Copy it or download it, then upload it to the root of your site as /robots.txt. Once it is live, the AI crawler checker reads it back and shows what each crawler is allowed.
The crawler list comes from the crawler directory, where each entry links the operator’s documentation or says when none could be found, so the names are the product tokens the crawlers send: 19 AI crawlers in three kinds. The presets set a whole kind at once: block only the crawlers that collect training data, block every AI crawler, or allow them all. “Everyone else” is the rule for search engines and any crawler not on the list.
Which AI crawlers can you block, and what does it change?
| Kind | On the list | What blocking changes |
|---|---|---|
| AI training crawlers | Amazonbot, Applebot-Extended, Bytespider, CCBot, ClaudeBot, cohere-ai, Google-Extended, GPTBot, meta-externalagent | Your pages stop being collected to train models. Where the operator runs a separate search crawler, search is not affected. |
| AI search crawlers | Claude-SearchBot, DuckAssistBot, OAI-SearchBot, PerplexityBot, YouBot | The assistant’s search index stops reading your pages, so they are less likely to be shown or linked in its answers. |
| AI user agents | ChatGPT-User, Claude-User, meta-externalfetcher, MistralAI-User, Perplexity-User | The assistant may stop opening your pages when a person asks it to, but only where the operator applies robots.txt to these fetches. Not every one says it does. |
Operators split the jobs differently, so read the kind before you block. OpenAI treats GPTBot, its training crawler, and OAI-SearchBot, its search crawler, as independent settings: blocking training does not take you out of ChatGPT search. Google-Extended is a robots.txt token with no crawler behind it; it opts content out of Gemini training and grounding and leaves Google Search alone.
Not every crawler promises to obey the file. Of the 19, the operators of Bytespider, ChatGPT-User, cohere-ai, meta-externalfetcher, Perplexity-User, YouBot say it is not always followed, or say nothing we could verify. The tool marks them next to their name.
What does each line in robots.txt mean?
| Line | What it does | Example |
|---|---|---|
User-agent: | Starts a group and names the crawler it applies to. Matching ignores case. | User-agent: GPTBot |
Disallow: | A path the crawler should not fetch. / is the whole site. | Disallow: /admin/ |
Allow: | A path it may fetch, to open part of a disallowed folder. | Allow: /admin/help/ |
Sitemap: | The full address of a sitemap. Belongs to no group. | Sitemap: https://example.com/sitemap.xml |
# | A comment. Crawlers ignore it. | # Blocked |
Paths are case-sensitive and match from the start. * stands for any run of characters and $ marks the end, so /*.pdf$ covers every PDF. These rules are from RFC 9309, the Robots Exclusion Protocol standard published in September 2022. The Sitemap line is not part of it; Google reads it and documents it as a full URL that can appear more than once.
A worked example
- Everyone else: Allow
- Preset: Block AI training
- Private paths:
/admin/ - Sitemap:
https://example.com/sitemap.xml
# Everyone elseUser-agent: *Disallow: /admin/# BlockedUser-agent: AmazonbotUser-agent: Applebot-ExtendedUser-agent: BytespiderUser-agent: CCBotUser-agent: ClaudeBotUser-agent: cohere-aiUser-agent: Google-ExtendedUser-agent: GPTBotUser-agent: meta-externalagentDisallow: /Sitemap: https://example.com/sitemap.xmlEvery training crawler shares one group that ends in Disallow: /. The search crawlers and user fetches are not named, so they follow the * group: the whole site except /admin/. Nothing is written for a crawler whose rule matches everyone else’s, which keeps the file short.
Now set everyone else to Block and allow only the AI search crawlers. The generator writes Disallow: / for *, then a group for the search crawlers with Allow: / and Disallow: /admin/ repeated inside it. The repeat matters: a crawler obeys the group that names it and ignores the * group, so without it the allowed crawlers would read /admin/.
How do you read the result?
- The most specific rule wins. When an Allow and a Disallow both match a URL, the longer path decides. If the two are equivalent, RFC 9309 says Allow should win.
- **A named crawler ignores the
*group.** Rules are not inherited, which is why the tool repeats private paths in allowed groups. - It is a request, not a lock. RFC 9309 says the rules are not access authorization, and every path you list becomes public knowledge. Put private pages behind a login.
- Blocking crawling is not removal. Google can still list a disallowed URL, without a snippet, when other pages link to it.
- Changes take time. Crawlers may keep a cached copy for up to 24 hours, and Google reads only the first 500 KiB of the file.
How CrispStats shows whether crawlers listen
Crawlers do not run analytics scripts, so they never show up as visitors. CrispStats reports their hits separately on the AI traffic page, from your edge or middleware, which sends only the user agent, the path and the status code, never an IP address. Hits are grouped by operator and by purpose (training, search, user fetch), so after you change robots.txt you can see whether a blocked crawler’s requests stop. AI visibility sets those crawls next to the visitors each assistant sends, which is the trade you are making when you block one.
The honest limit: you see only what your edge forwards. A crawler that respects the block makes no further page requests, and one that ignores it shows up with the paths it took. To point the crawlers you allow at your best pages, add an llms.txt file with the llms.txt generator.
Terms used here
Guides
- Should you block AI crawlers? Training, search and user bots comparedBlocking a training bot keeps you out of future models; blocking a search or user bot keeps you out of answers. What each block costs, with robots.txt rules.
- How to remove bot traffic from Google Analytics and other toolsGA4 removes known bots automatically, but some still get through. How GA4 and privacy-first tools filter bots, how to spot the rest, and what to do.
- How to track visitors from ChatGPT, Perplexity and other AI assistantsHow to see visits sent by AI assistants: the referrers and UTM tags to look for, why much of it shows as direct, and how to log AI crawlers.
More free tools
All free tools- llms.txt generatorWrite an llms.txt file with sections and links in the llmstxt.org format, checked as you type, then copy or download it.
- AI crawler checkerEnter a domain or paste a robots.txt file and see which AI crawlers it allows, with the rule that decides each one.
- UTM builderTag one link or hundreds with UTM parameters, check them for mistakes, export a CSV and see which channel each counts as.
- UTM checkerPaste a link and see which UTM tags are missing, which have capitals, and which are fine.
- UTM naming checkerClean a list of campaign names or links: lowercase, spaces to underscores, and a note of each change.
- GA4 URL testerSee the GA4 channel group for a tagged link, and the CrispStats channel beside it.
- UTM link testerCheck a tagged link for missing tags and messy spelling, and see both channel names before you send it.
- Traffic source classifierPaste a referrer or a tagged link and see which channel and source the visit counts as, and why.