Skip to content

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.

Presets

Search engines and every crawler not set below. Block keeps the whole site out of search.

AI training crawlers

AI search crawlers

AI user agents

One per line, such as /admin/ or /*.pdf$. Kept from every crawler you allow.

Full addresses, one per line.

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?

Which AI crawlers can you block, and what does it change?
KindOn the listWhat blocking changes
AI training crawlersAmazonbot, Applebot-Extended, Bytespider, CCBot, ClaudeBot, cohere-ai, Google-Extended, GPTBot, meta-externalagentYour pages stop being collected to train models. Where the operator runs a separate search crawler, search is not affected.
AI search crawlersClaude-SearchBot, DuckAssistBot, OAI-SearchBot, PerplexityBot, YouBotThe assistant’s search index stops reading your pages, so they are less likely to be shown or linked in its answers.
AI user agentsChatGPT-User, Claude-User, meta-externalfetcher, MistralAI-User, Perplexity-UserThe 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?

What does each line in robots.txt mean?
LineWhat it doesExample
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

  1. Everyone else: Allow
  2. Preset: Block AI training
  3. Private paths: /admin/
  4. 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.xml

Every 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.

More free tools

All free tools

Tool questions. Straight answers.

What people ask about this tool before they use the number.

  • Not by itself. Googlebot is not one of the AI crawlers on the list, and blocking Google-Extended opts content out of Gemini training and grounding without changing Google Search. Leave everyone else on Allow and search engines keep crawling as before.

  • No. OpenAI treats GPTBot, its training crawler, and OAI-SearchBot, its search crawler, as separate settings. Blocking GPTBot opts your pages out of training only, so they can still appear in ChatGPT search.

  • At the root of each host, as /robots.txt, served as plain text in UTF-8. A file on www.example.com does not cover shop.example.com; each host needs its own.

  • No. The file is a request. Most operators on the list say their crawlers follow it, but some say their user-triggered fetchers do not always, and a few publish no statement at all. The tool marks those.

Not answered here? Write to hello@crispstats.com

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.