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:
- It doesn't keep a page out of Google. Google says a page blocked in robots.txt can still be indexed if other sites link to it, and its address can still appear in results. To keep a page out, use a
noindextag, and leave the page crawlable so the tag can be seen. - It doesn't protect anything. Anyone can open it, and well-behaved crawlers obey it by choice. Listing a private folder in it tells everyone where the folder is. Put private pages behind a login.
- It doesn't bind every visitor. OpenAI says robots.txt rules may not apply to ChatGPT-User, and Perplexity says Perplexity-User generally ignores them, because a person asked for the page.
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.
- A crawler uses the most specific rules that match it: the group or groups whose
User-agentline names it most specifically. Google combines several groups that name the same crawler, but doesn't add theUser-agent: *rules to them. If you add a group forGPTBot, GPTBot ignores everything underUser-agent: *, so repeat any generalDisallowlines it should still obey. - The most specific path wins. When an
Allowand aDisallowrule both match, Google uses the longer one, and the less restrictive one if they are equally long. - Paths are case-sensitive.
Disallow: /Admindoes not block/admin. - Size limit. Google reads the first 500 KiB and ignores the rest.
- Errors matter. Google treats most 4xx errors as if the site had no robots.txt, so nothing is restricted. The exception is 429 (too many requests), which Google treats like a server error. If the file returns a 5xx server error, Google stops crawling the site for a while. So look into rate limits and server errors rather than assuming they leave crawling open.
- Crawl-delay is not supported by Google. Anthropic says its crawlers do support it. A long delay slows every crawler that honors it.
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.
| Crawler | Company | Job | What it does | robots.txt, in the company's words | Our advice |
|---|---|---|---|---|---|
OAI-SearchBot | OpenAI | AI answers | Finds 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-User | OpenAI | AI answers | Fetches 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 |
GPTBot | OpenAI | AI training | Collects 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-SearchBot | Anthropic | AI answers | Indexes pages so Claude can find and cite them when it searches. | Anthropic says its bots honor robots.txt. | Allow |
Claude-User | Anthropic | AI answers | Fetches a page when a Claude user's question needs it. | Anthropic says its bots honor robots.txt. | Allow |
ClaudeBot | Anthropic | AI training | Collects pages that may be used to train Anthropic's models. | Anthropic says its bots honor robots.txt, and Crawl-delay too. | Your choice |
PerplexityBot | Perplexity | AI answers | Indexes 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-User | Perplexity | AI answers | Fetches a page when a Perplexity user's question needs it. | Perplexity says it generally ignores robots.txt, because a person asked. | Allow |
Google-Extended | AI training | Controls 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-Agent | AI answers | Lets 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-GeminiNotebook | AI answers | Fetches a page a Gemini Notebook user has added as a source. | Google says fetchers a person triggers generally ignore robots.txt. | Allow | |
OAI-AdsBot | OpenAI | Ads | Checks 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:
- AI Crawler and Agent access policies (once called Configure AI bot policies), under Security > Settings, filtered by bot traffic. It sets what happens to crawlers in three groups, Search, Agent and Training: block them, block them only on pages with ads, or allow them; for Training it can also ask them, through robots.txt, not to come (Cloudflare).
- Managed robots.txt. When it is on, Cloudflare puts its own lines in front of your robots.txt, including
Disallowlines for training crawlers such as GPTBot, ClaudeBot, CCBot, Google-Extended and Bytespider, and writes a file for you if you have none (Cloudflare).
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
Disallow: /left over from building the site. It blocks everything. Check the file whenever a site goes live or moves host.- 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.
- Putting
noindexin robots.txt. Google stopped supporting it on September 1, 2019. Use the meta tag or theX-Robots-Tagheader instead. - 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.
- A named group that drops your general rules, as described above.
- A copied "block AI" list that includes OAI-SearchBot, Claude-SearchBot or PerplexityBot, which removes you from those assistants' answers.
- A broken sitemap line: a relative address, an old domain, or a sitemap that no longer loads.
- 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
- The file loads at
/robots.txtas plain text, without an error. - No
Disallow: /underUser-agent: *unless you really mean it. - CSS, JavaScript and image folders are not blocked.
- Nothing private is listed in it; private pages are behind a login.
- Pages you want out of Google use noindex and are not blocked here.
- Every named group repeats the general rules it should keep.
- AI search crawlers are allowed; any training opt-out names only training crawlers.
- The Sitemap line is a full https address that loads.
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.
- robots.txt
- Rendering files are crawlable
- The sitemap in robots.txt loads
- AI crawlers allowed
- Search crawlers allowed
- Named crawler groups keep your Disallow rules
- Crawl delay isn't starving AI crawlers
- Your robots.txt says why it turns AI training away
- Your AI licence file can be read (RSL)
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.
- Google Search Central: Introduction to robots.txt
- Google Search Central: How Google interprets the robots.txt specification
- Google Search Central blog: A note on unsupported rules in robots.txt (2019)
- Google Search Central: Block search indexing with noindex
- OpenAI: Overview of OpenAI crawlers
- Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?
- Google Search Central: Google's common crawlers (Google-Extended)
- Perplexity: Perplexity crawlers
- Google Crawling Infrastructure: Google's common crawlers
- Google Crawling Infrastructure: Google's user-triggered fetchers
- Cloudflare: AI Crawler and Agent access policies
- Cloudflare: Managed robots.txt
More on getting found in search
- One address for each page: www, https, canonical tags and redirects
- What is IndexNow, and why does it matter for your website?
- How your business shows up in Google: titles, descriptions and headings
- Why isn't my favicon showing in Google? How Google picks your icon and site name
- Meta description length: how long should it be?
- Does your website still need an FAQ page now that Google's FAQ rich results are gone?
- Does Google penalize AI-written content? What Google's own pages say
- Broken links: how to find and fix them on your website