Build the file

Access
Paths to close

A path closes every URL that starts with it. * stands for any text and $ marks the end of the URL.

AI crawlers
Sitemaps
robots.txtUpdates as you type

Next: upload the file to the site root, then run the robots.txt checker on the live address.

How to use the robots.txt generator

  1. Leave Open site on unless the address is a staging copy.
  2. Pick a starting set or list the paths that should not be crawled: carts, account pages, internal search, URLs with sort and session parameters.
  3. Decide about AI crawlers. Training and AI search are separate switches, so you can opt out of one and stay in the other.
  4. Add the full sitemap address.
  5. Download the file and place it at https://your-site/robots.txt. Each subdomain needs its own file.
  6. Open the live address in the robots.txt checker to confirm that Googlebot and Bingbot still reach the home page.

What to close and what to leave open

Part of the siteClose it?Why
Cart, checkout, accountYesPersonal pages with no search value; crawling them wastes requests
Internal search resultsYesThey create endless URL combinations
Sort, filter and session parametersUsuallyThe same list in another order is a duplicate
CSS, JavaScript, imagesNoGoogle renders the page and needs these files
A page you want out of searchNoLeave it crawlable and add a noindex tag; a blocked page can still be listed by its URL
Admin loginOptionalRobots.txt is public and is not protection. Use a password

AI crawlers: three jobs, three decisions

AI companies now run separate bots for training, for search and for pages a person asks the assistant to open. The first two follow robots.txt; the third often does not.

TokenCompanyWhat it doesIf you block it
GPTBotOpenAICollects pages that may train modelsNew content stays out of training. ChatGPT search is a separate bot
OAI-SearchBotOpenAIFinds pages for ChatGPT searchPages are not shown in ChatGPT search answers
ChatGPT-UserOpenAIOpens a page when a person asksOpenAI says robots.txt may not apply to it
ClaudeBotAnthropicCollects pages that may train modelsFuture content is left out of training data
Claude-SearchBotAnthropicIndexes pages for search answers in ClaudeLower visibility in those answers
Claude-UserAnthropicOpens a page when a person asksClaude cannot read the page for that person
PerplexityBotPerplexityIndexes pages for Perplexity searchPages may not be cited in Perplexity
Perplexity-UserPerplexityOpens a page when a person asksPerplexity says it generally ignores robots.txt here
Google-ExtendedGoogleA switch, not a crawler: Gemini training and groundingNo effect on Google Search
Applebot-ExtendedAppleA switch, not a crawler: training of Apple modelsApplebot still crawls for Siri and Spotlight
meta-externalagentMetaCrawls for AI training and product indexingContent is left out of that crawl
CCBotCommon CrawlBuilds an open dataset that many AI projects useNew pages stay out of the dataset

The usual choice for a business site is to opt out of training if that matters to you and to keep AI search open, because that is where new visitors come from. The page on AI search visibility covers the rest of the setup.

One rule that surprises people

A crawler with its own group ignores the general User-agent: * group. The generator only writes own groups for bots you block completely, so your path rules keep applying to everyone else.

After the upload

  1. Open /robots.txt in a browser. It must answer 200 as plain text.
  2. Check a page that must rank and a page that must stay closed.
  3. Changes are not instant. Google usually refreshes its copy of the file within a day; OpenAI says its search systems need about 24 hours.

Monitor this automatically

Save your site in Traffivio and get scheduled audits, health checks and agent proposals.

Sign up free ↗

Questions

Where does the robots.txt file go?

In the root of the host, so it opens at https://example.com/robots.txt. A file in a folder is ignored, and every subdomain needs its own.

Does blocking GPTBot remove my site from ChatGPT?

No. GPTBot collects training data. ChatGPT search uses OAI-SearchBot, and OpenAI treats the two settings separately.

Does Disallow remove a page from Google?

No. It stops crawling, not indexing. A blocked URL can still appear when other sites link to it. To remove a page, keep it crawlable and add a noindex tag.

Should I add Crawl-delay?

Googlebot ignores it. Bing and some other crawlers read it. Leave it out unless crawling really loads the server.

Is anything I type sent to Traffivio?

No. The generator runs in your browser. The text is not uploaded or stored.

Do I need an account?

No. The generator works without signing in. An account is only for scheduled audits of a saved site.