Robots.txt generator

Build a correct robots.txt, block AI crawlers if you want to, and test a URL before you publish.

Free to use, no sign-up.

How it works

  1. Pick a starting point (allow everything, WordPress, Shopify, Next.js or a staging site) and add the paths you want crawlers to skip.
  2. Choose which AI crawlers to block, such as GPTBot, ClaudeBot, CCBot or Google-Extended, and add your sitemap URL.
  3. Test a page address against the file to see whether it is allowed and which rule decided it, check for common mistakes, then copy or download robots.txt.

Questions

Where do I put the robots.txt file?

At the root of your domain, so it loads at https://yoursite.com/robots.txt. Each subdomain needs its own file. Crawlers do not look for it in a subfolder.

Does blocking AI crawlers in robots.txt guarantee they stay away?

No. robots.txt is a request that well-behaved crawlers honour, not a lock. OpenAI and Anthropic say their crawlers (GPTBot, OAI-SearchBot, ClaudeBot and others) follow it, but OpenAI says robots.txt rules may not apply to ChatGPT-User, because a person triggers that visit. Some other bots ignore it, and it does not remove content that was already collected. If something must stay private, put it behind a login.

Will blocking Google-Extended hurt my Google search ranking?

Google describes Google-Extended as a control token that decides whether content Google crawls may be used to train future Gemini models and for grounding in Gemini apps. Google's documentation says it does not affect a site's inclusion in Google Search and is not a ranking signal. It also covers grounding in Gemini apps, not only training. Googlebot is the one that matters for search.

What is the difference between the AI training, search and assistant crawlers?

Training crawlers (such as GPTBot and ClaudeBot) gather content that may be used to train models. Search crawlers (such as OAI-SearchBot and PerplexityBot) find pages to show in AI search answers, so blocking them can reduce how often your site is cited. Assistant fetchers (such as ChatGPT-User and Claude-User) load a page when a person asks about it. You can allow some and block others.

Does robots.txt keep a page out of Google?

Not reliably. It stops crawlers fetching a page, but a blocked page can still appear in results if other sites link to it, without a description. To keep a page out of search results, let it be crawled and add a noindex meta tag or header, or put it behind a password.

How does the tester decide?

It follows the standard robots.txt matching rules: the most specific group for the crawler is used, the longest matching rule wins, Allow wins a tie, * matches any characters and $ matches the end of the address. It runs entirely in your browser and never fetches your site.

Free tool by Huntsville Software. It runs in your browser; your files and text are not uploaded.