Free Robots.txt Generator

Decide which AI reads your site.

Build a clean robots.txt in a minute: keep crawlers out of the pages that don't belong in search, and choose which AI crawlers can train on or cite your content. Free, and it runs in your browser.

AI crawlers

Stay in AI search answers, keep pages out of training sets.

Start each with /. Use * as a wildcard and $ for the end of an address.

Your robots.txt

# robots.txt
# Made with the free Robots.txt Generator at newtheory.marketing/tools/robots-txt-generator

User-agent: *
Disallow: /admin/
Disallow: /api/
Disallow: /cart
Disallow: /*?sessionid=

# AI crawlers and AI training controls you chose to block
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: meta-externalagent
User-agent: CCBot
Disallow: /

Sitemap: https://www.example.com/sitemap.xml

  • Pass: Sitemap listed with a full address.
  • Pass: Valid syntax: one group for all crawlers, plus one group for the AI crawlers you block.

Training crawlers, search crawlers and user fetchers

AI companies now run several bots each, and they do different jobs. Blocking the wrong one costs you more than you meant to give up.

  • Training crawlers collect pages that may train future models: GPTBot, ClaudeBot, meta-externalagent and CCBot. Google-Extended and Applebot-Extended aren't crawlers at all; they're tokens that control whether pages Google and Apple already crawl can be used for AI training.
  • Search crawlers find pages to cite in AI answers: OAI-SearchBot for ChatGPT search, Claude-SearchBot, PerplexityBot and meta-webindexer. Block these and you drop out of those answers.
  • User fetchers load a page because a person asked about it: ChatGPT-User, Claude-User and Perplexity-User. OpenAI and Perplexity say theirs may not follow robots.txt, because a person made the request.

For most B2B companies, being cited in AI answers is worth more than keeping pages out of training data, which is why "Block training only" is our default. Pair this file with an llms.txt that tells AI tools which pages matter, check your sitemap with the XML Sitemap Validator, and see whether assistants mention you with the AI Visibility Checker.

Sources for the crawler names

Each name and what it does comes from the vendor's own documentation, checked December 1, 2026: OpenAI crawlers, Anthropic crawlers, Perplexity crawlers, Google common crawlers, About Applebot, Meta web crawlers and Common Crawl's CCBot. Vendors add and rename bots, so check back before a big change.

The math

How we calculated this

Rules for every crawler first, then one group for each AI crawler you block.

  1. All crawlers

    User-agent: * with your Disallow and Allow paths

  2. AI crawlers

    User-agent: name, then Disallow: / for each one you block

  3. Sitemaps

    Sitemap: lines at the end

What we assume

  • robots.txt is a request; well-behaved crawlers follow it, others don't.

Rules of thumb

  • The format follows the Robots Exclusion Protocol (RFC 9309).

Free, and staying free

If one of these saved you an hour, an optional $5 tip helps cover what it costs to run and build them. Nothing unlocks, and every tool stays free.

Buy us a coffeeTip us for the free tools (optional tip, $5 suggested, opens Stripe in a new tab)

How to use the Robots.txt Generator

  1. Pick a quick setting for AI crawlers, or switch each one on or off.

  2. List any folders every crawler should stay out of, such as admin or cart pages.

  3. Add your sitemap address.

  4. Read the checks, then download robots.txt and upload it to the root of your domain.

What the result means

  • User-agent: * group

    Rules for every crawler, Google and Bing included, unless a crawler has a group of its own.

  • AI crawler group

    The AI crawlers you chose to block, each with Disallow: /. A crawler with its own group ignores the * group.

  • Training versus search

    Blocking a training crawler keeps pages out of training sets. Blocking a search crawler also keeps you out of that assistant's answers.

  • Checks

    Syntax problems, a blocked site, blocked scripts and crawlers that may not follow robots.txt.

Questions about this tool

Should I block AI crawlers?

It depends on what you sell. Most B2B companies want to show up in AI answers, so they allow the search crawlers and decide separately about training crawlers. Blocking everything also removes you from AI search results.

Does blocking Google-Extended hurt my Google rankings?

Google says Google-Extended does not affect a site's inclusion or ranking in Google Search. It controls whether your content helps improve Gemini apps and Vertex AI models.

Does robots.txt stop every bot?

No. It's a request that well-behaved crawlers follow. Some fetchers that act for a person, such as ChatGPT-User and Perplexity-User, may not follow it, and bad bots ignore it. Use a firewall rule to enforce a block.

Can robots.txt remove a page from Google?

No. A blocked page can still be indexed from links. Use a noindex tag, and leave the page crawlable so Google can see it.

Is anything sent to a server?

No. The file is built in your browser.

Want to show up in AI answers, not just block them?

20 minute fit call. You'll leave knowing the first thing we'd fix and roughly what it costs. If we're not the right fit, we'll tell you who is.