robots.txt generator for AI crawlers

Decide, crawler by crawler, which AI agents may read your site. Toggle GPTBot, ClaudeBot, PerplexityBot and the rest, add your sitemap, and copy-paste a valid robots.txt - no signup required, generated live in your browser.

  • No signup required
  • 8 AI user-agents
  • Nothing stored
Per-crawler policy
  • GPTBotOpenAIAllowed

    Crawls to train and power ChatGPT answers

  • OAI-SearchBotOpenAIAllowed

    Crawls for ChatGPT web-search results

  • ChatGPT-UserOpenAIAllowed

    Live browsing when a user asks ChatGPT

  • ClaudeBotAnthropicAllowed

    Crawls to train and power Claude

  • Claude-WebAnthropicAllowed

    Claude's live user-initiated browsing

  • PerplexityBotPerplexityAllowed

    Builds the index Perplexity answers from

  • Google-ExtendedGoogleAllowed

    Office of Gemini / AI Overviews training use

  • Applebot-ExtendedAppleAllowed

    Powers Apple Intelligence

Applied to the User-agent: * group - Googlebot and Bingbot keep obeying them.
robots.txt · live preview
User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: ClaudeBot
User-agent: Claude-Web
User-agent: PerplexityBot
User-agent: Google-Extended
User-agent: Applebot-Extended
Allow: /

User-agent: *
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/

Sitemap: https://yourdomain.com/sitemap.xml

This replaces your whole robots.txt - merge it with your existing rules if you run special-cased directives, then verify with the AI crawler check.

Getting crawled is step one.After crawls come citations - Sonarvue tracks what the engines say about you over time.
Start the trial

Why AI crawlers need their own robots.txt decisions

AI answer engines rely on their own crawlers, and each engine names a distinct user-agent in robots.txt. OpenAI alone runs three: GPTBot for training and answers, OAI-SearchBot for ChatGPT's web-search index, and ChatGPT-User for the live browsing that happens when a person asks a question. Anthropic splits ClaudeBot from Claude-Web, Perplexity runs PerplexityBot to build the index its answers draw from, and Google-Extended and Applebot-Extended separately control how Google's and Apple's AI products may use your content. A single old-fashioned "Disallow: /" under User-agent: * quietly refuses all of them - a common reason a brand vanishes from Perplexity or ChatGPT without anyone noticing a change.

The generator above gives you per-bot Allow/Block switches, three sensible presets, and a live preview of valid directives. If you are unsure where to start, "allow answers, block training" is the honest middle path: OAI-SearchBot, ChatGPT-User and PerplexityBot can still read you and cite you, while the training-centric crawlers hold off. Or allow everyone and be maximally available to every engine - for most businesses that want to appear in AI answers, the open file is the right default.

How the directives are assembled (the part people get wrong)

robots.txt is read in groups. A group starts at a User-agent: line and continues until the next agent line; consecutive agent lines share one rule-set, which is why the builder can merge your per-bot toggles into tidy blocks. Within a group, the longest matching path rule wins - "Disallow: /blog" outranks "Allow: /", and an explicit "Allow: /" on a strong group keeps your whole site readable while narrower Disallow entries carve out exceptions. A bot named by a group ignores the * group entirely: "User-agent: GPTBot" with a single Disallow line means Googlebot's permissions never apply to OpenAI. The generated file keeps each named bot in its own group so there is no accidental inheritance, puts your sitemap URL(s) at the end, and preserves your admin/cart/checkout exclusions under * so Googlebot and Bingbot keep obeying them.

Publish it, then prove it worked

Download the file and place it at your domain root so that visiting https://yourdomain.com/robots.txt shows exactly what you meant to publish. Then close the loop with the AI crawler check - it reads your live file and shows, bot by bot, who is actually allowed in. A rule you meant one way but wrote another is the classic mistake; the check exists because "I published it" is not evidence.

The file ages - review it like any crawl surface

New AI agents appear monthly, and each arrives with a user-agent line of its own: bytespider from ByteDance and the newest entrants keep the list above from being exhaustive. Every quarter or so, run the AI crawler check against your live domain and read the wayback of your own robots.txt decisions; if a rule you barely remember publishing for an engine now matters, patch it in this builder and deploy the regenerated file. The maintenance habit is the point - a robots.txt is one of the few SEO artifacts where a single line of fine text can opt a product in or out of a distribution channel overnight.

One honest limit: robots.txt is a request, not a wall. Well-behaved engines obey it, but it does not authenticate, prevent retrieval of pages already crawled, or stop an end-user from visiting your site through an agent. Treat it as a set of instructions you renew deliberately, and if a crawler misbehaves without respect for it, edge-level bot management is the enforcement layer - not this text file. For everything else, the trial scan tracks whether the engines now see and cite you.

Frequently asked questions

Which AI crawlers should my robots.txt mention?

At minimum GPTBot, ClaudeBot and PerplexityBot, because they feed the answers most buyers see. Good hygiene adds OAI-SearchBot and ChatGPT-User (OpenAI's separate search and browsing agents), Claude-Web, Google-Extended and Applebot-Extended, each of which is a distinct user-agent with its own rule group.

Should I block AI crawlers or allow them?

If you want to be cited, allow them: a blocked crawler can never read or quote you. If you never want AI systems using your content, the generator's 'block every AI crawler' preset produces the strictest file. The middle ground - allow answer-gathering bots, block training-focused ones - is one click.

How does robots.txt decide allow vs disallow?

For each user-agent, the most specific (longest) matching path rule wins, so 'Disallow: /blog' beats 'Allow: /'. A rule group applies to a bot (or the '*' wildcard) only if it is named; unknown bots fall back to the '*' group, and a bot named in its own group ignores '*' entirely.

Does blocking in robots.txt stop AI from quoting me?

It stops that crawler from fetching your pages, which removes you from the index the answer is built from. It cannot withdraw content that was already crawled, and it does not stop a user-initiated agent (like ChatGPT-User) from opening a URL on your behalf - that is a different user-agent.

Where does the generated file go?

Publish it at the root of your domain - exactly https://yourdomain.com/robots.txt, not in a subfolder. Then verify with the AI crawler check that your policy reads the way you intended, and re-run it after any site change.