Tell crawlers where not to go.

A robots.txt file sits at the top of a website and gives crawlers, the automated programs that search engines and AI companies use, simple rules about which addresses to skip. Choose a default, list the folders to leave out, add your sitemap and download the file.

It is a polite request that reputable crawlers follow, not a lock.

Runs in your browser. Nothing is uploaded.

Default rule for all crawlers

More search & web tools · All 54 tools

How to use it

  1. Under Default rule for all crawlers, keep Allow crawling for a public site, or choose Block everything for a staging or private copy.
  2. Type any Paths to block, one per line, such as /admin/ or /checkout/. Full addresses are trimmed to their path.
  3. Paste your Sitemap URL, starting with https://.
  4. Leave Crawl-delay at 0 unless a crawler is overloading your server, and tick the AI crawler box if you want to opt out of those bots.
  5. Copy the result or press Download robots.txt, then upload it so it opens at yourdomain/robots.txt.

How crawlers read the rules

The file follows RFC 9309, the Robots Exclusion Protocol. A crawler looks for the group whose User-agent line names it most specifically, and uses the * group only if none does. A crawler with its own group ignores the * rules completely.

Matching

  • A rule matches the start of the path. When several match, the longest rule wins; on a tie, Allow wins.
  • Paths are case-sensitive. * matches any characters and $ marks the end of the address.
RuleBlocksDoes not block
Disallow: /cart//cart/, /cart/checkout/cart, /Cart/
Disallow: /search/search, /search?q=mugs, /searching/blog/search
Disallow: /*.pdf$/files/prices.pdf/files/prices.pdf?v=2

Spaces and non-ASCII characters are percent-encoded as the standard requires, so /café becomes /caf%C3%A9.

The AI crawler list

  • GPTBot (OpenAI) collects pages that may be used to train its models.
  • ChatGPT-User (OpenAI) is not a training crawler: it fetches a page when a ChatGPT user asks for it. Blocking it stops ChatGPT opening your pages on request.
  • CCBot (Common Crawl) builds an open web archive that many AI datasets draw on.
  • Google-Extended is a control token, not a separate crawler. Google's normal crawler still visits; the token decides whether that content may be used for Gemini models. Google Search is not affected.
  • ClaudeBot (Anthropic) collects pages that may be used for model training.
  • PerplexityBot (Perplexity) indexes pages so its answer engine can show and link to them.

With Block everything selected, the AI groups are left out because the * rule already covers them.

Other details

  • Crawl-delay is not part of the standard. Google ignores it; Bing honours it.
  • Crawlers usually cache the file for up to a day, so changes take a little while to apply.
  • The file is public. Never list secret addresses in it; protect them with a password instead.

Questions.

Does blocking a page keep it out of search results?

Not always. A blocked address can still be listed if other sites link to it, just without a description. To keep a page out, let it be crawled and add a noindex meta tag.

Will the AI opt-out remove my content from existing AI models?

No. The opt-out only covers future visits by the bots listed. Content gathered earlier is not removed by robots.txt.

Should I block ChatGPT-User?

Only if you do not want ChatGPT to open your pages when its users ask about them. It fetches pages on request rather than collecting them for training, so blocking it mainly stops your site appearing in those answers.

Where does the file go?

At the root of each host, for example https://www.example.com/robots.txt. A subdomain such as shop.example.com needs its own file.

Why was my sitemap line left out?

The Sitemap line needs a full address starting with http:// or https://. Fix the URL and the line appears.

Can I use robots.txt to hide private pages?

No. Anyone can read the file, and badly behaved bots ignore it. Use a password or a login for anything private.

OpenAI and ChatGPT are trademarks of OpenAI. Google and Gemini are trademarks of Google LLC. Anthropic and Claude are trademarks of Anthropic, PBC. Perplexity is a trademark of Perplexity AI, Inc. Bing is a trademark of Microsoft Corporation.