robots.txt for small businesses: what to allow, what to block

Last updated

The short answer

Most small-business sites need a very short robots.txt: allow everything, keep crawlers out of pages with no value to a searcher (a basket, internal search results), and point to your sitemap. Never use it to hide a page from Google (use noindex for that), never block the CSS and JavaScript your pages need, and check that any AI rules block only what you meant to.

What robots.txt does, and what it doesn't

It is a plain text file at the root of your site, at https://yoursite.com/robots.txt, that tells crawlers which addresses they may fetch. Google reads it only from the top level of the site, and its rules apply only to the same host, protocol and port: shop.yoursite.com needs its own file.

What it does not do:

A safe starting file

For a typical brochure site or small shop, something like this is enough:

User-agent: *
Disallow: /cart/
Disallow: /search

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

Swap the two Disallow lines for your own basket and site-search addresses, or remove them; an empty file, or one with Disallow: and nothing after it, allows everything. The Sitemap line must be a full address, starting with https://.

How crawlers read the rules

These are the rules as Google documents them; the main AI crawlers say they honor the same standard.

Choosing what AI crawlers may do

AI companies name their crawlers by job, so you can allow the ones that let assistants find and cite you while opting out of training. This example lets the answer crawlers in and keeps two training crawlers out:

User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /

User-agent: GPTBot
User-agent: ClaudeBot
Disallow: /

User-agent: *
Disallow: /cart/

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

Two things to know. First, the answer crawlers' group above doesn't include Disallow: /cart/, so they may fetch the basket; add it to their group if that matters to you. Second, Google's training opt-out is a separate token, Google-Extended, and Google says it does not affect your inclusion or ranking in Google Search. Never block Googlebot to opt out of AI: that stops Google crawling your pages for Search.

Changes take time to reach the crawlers: OpenAI says about 24 hours for its search crawler.

AI crawlers by name, November 2026

These are the AI crawlers of the four companies most small businesses ask about, as each company describes them. "AI answers" crawlers decide whether you can be found and cited; "AI training" crawlers only collect pages for training. The companies add and rename crawlers, so check their pages before you copy a list: OpenAI, Anthropic, Perplexity and Google's common crawlers and user-triggered fetchers.

CrawlerCompanyJobWhat it doesrobots.txt, in the company's wordsOur advice
OAI-SearchBotOpenAIAI answersFinds pages to show and link to in ChatGPT's search answers.OpenAI says sites that opt out are not shown in ChatGPT search answers, and a change takes about 24 hours.Allow
ChatGPT-UserOpenAIAI answersFetches a page when a ChatGPT user's question needs it.OpenAI says robots.txt rules may not apply, because a person started the visit.Allow
GPTBotOpenAIAI trainingCollects pages that may be used to train OpenAI's models.OpenAI says disallowing it signals your content shouldn't be used for training.Your choice
Claude-SearchBotAnthropicAI answersIndexes pages so Claude can find and cite them when it searches.Anthropic says its bots honor robots.txt.Allow
Claude-UserAnthropicAI answersFetches a page when a Claude user's question needs it.Anthropic says its bots honor robots.txt.Allow
ClaudeBotAnthropicAI trainingCollects pages that may be used to train Anthropic's models.Anthropic says its bots honor robots.txt, and Crawl-delay too.Your choice
PerplexityBotPerplexityAI answersIndexes pages to show and link to in Perplexity's answers.Perplexity asks sites to allow it in robots.txt to appear in its results.Allow
Perplexity-UserPerplexityAI answersFetches a page when a Perplexity user's question needs it.Perplexity says it generally ignores robots.txt, because a person asked.Allow
Google-ExtendedGoogleAI trainingControls whether Google may use your pages to train and ground its Gemini models.A robots.txt token, not a visitor. Google says it doesn't affect Google Search.Your choice
Google-AgentGoogleAI answersLets agents running on Google's servers browse and act on the web when a user asks.Google says fetchers a person triggers generally ignore robots.txt.Allow
Google-GeminiNotebookGoogleAI answersFetches a page a Gemini Notebook user has added as a source.Google says fetchers a person triggers generally ignore robots.txt.Allow
OAI-AdsBotOpenAIAdsChecks the landing pages of ads submitted to ChatGPT.OpenAI says it visits only pages submitted as ads, and what it collects isn't used for training.Allow, if you advertise in ChatGPT

"Your choice" marks the rows about training. OpenAI says each of its settings is independent, so you can block GPTBot and still appear in ChatGPT's search answers; Google says Google-Extended doesn't affect Google Search, though it also covers grounding in Gemini apps. If you do turn a training crawler away, write the reason and the date in a comment line (a # line) above its group, so the next person to edit the file knows why. Your robots.txt says why it turns AI training away looks for that line. The free AI crawler checker reads your rules for each crawler in its own, longer list.

What your CDN decided for you

If your site runs through a CDN or a host's firewall, a setting there may answer an AI crawler before your robots.txt is ever read, and some can change the robots.txt crawlers see. Cloudflare has two such settings:

On another CDN or a host's firewall, look in its bot or security settings for a rule about AI crawlers. Then open yoursite.com/robots.txt in a browser to see the file crawlers really get, and run the AI crawler checker to see whether the answer crawlers get your page or a refusal.

Common mistakes

  1. Disallow: / left over from building the site. It blocks everything. Check the file whenever a site goes live or moves host.
  2. Blocking CSS, JavaScript or image folders. Google asks you not to block files your pages need to display, or it can't understand the page properly.
  3. Putting noindex in robots.txt. Google stopped supporting it on September 1, 2019. Use the meta tag or the X-Robots-Tag header instead.
  4. Blocking a page you also marked noindex. The crawler can't read the page, so it never sees the tag, and the address can stay in results.
  5. A named group that drops your general rules, as described above.
  6. A copied "block AI" list that includes OAI-SearchBot, Claude-SearchBot or PerplexityBot, which removes you from those assistants' answers.
  7. A broken sitemap line: a relative address, an old domain, or a sitemap that no longer loads.
  8. A robots.txt that is really an error page, or a server error that tells Google to stop crawling.

How to check yours

Run the free robots.txt checker: it reads your file, flags syntax mistakes, tells you whether it blocks your homepage or the files your pages need, shows what each major crawler is allowed, and checks that its sitemap lines load. For AI crawlers specifically, the AI crawler checker also tests whether your firewall lets them through. If it reports a 403 or a 405, the fix is in AI crawler blocked? Fixing 403, 404 and 405 errors. If assistants still can't see you, read why AI assistants can't see your website.

Checklist

What the free scan checks for this

These are the FocalScore checks that cover this guide's subject. Each one in your report says what it found, shows the evidence and gives the fix.

Sources

Last checked . Documentation, settings and rules change; if one of these pages now says something different, it is right and this guide is out of date. Tell us at info@focalscore.com.

  1. Google Search Central: Introduction to robots.txt
  2. Google Search Central: How Google interprets the robots.txt specification
  3. Google Search Central blog: A note on unsupported rules in robots.txt (2019)
  4. Google Search Central: Block search indexing with noindex
  5. OpenAI: Overview of OpenAI crawlers
  6. Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?
  7. Google Search Central: Google's common crawlers (Google-Extended)
  8. Perplexity: Perplexity crawlers
  9. Google Crawling Infrastructure: Google's common crawlers
  10. Google Crawling Infrastructure: Google's user-triggered fetchers
  11. Cloudflare: AI Crawler and Agent access policies
  12. Cloudflare: Managed robots.txt

All 14 guides on getting found in search · All guides