robots.txt starter policies for online stores

Three robots.txt blocks to copy: let everyone in, keep AI training out while search stays in, and keep private store pages out. With the one rule that trips most edits.

By ClearReadout Updated Facts last checked

Three blocks to copy. Before you paste any of them, one rule.

A crawler with its own group ignores the star group entirely. Google’s specification says a crawler uses only the group with the most specific name that matches it, and “user agent specific groups and global groups (*) are not combined.” Name a crawler once and you have to give it every rule you meant for it.

Swap example.com for your domain before you paste. And on Shopify, add these with Liquid in robots.txt.liquid rather than replacing the whole file; the Shopify guide explains why.

1. Let everyone in

User-agent: *
Allow: /

Sitemap: https://example.com/sitemap.xml

Every crawler that follows robots.txt may read every page. The Sitemap line tells them where your list of pages is.

2. Search crawlers in, training crawlers out

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: *
Allow: /

Sitemap: https://example.com/sitemap.xml

These four names are the training controls OpenAI, Anthropic, Google and Apple document. Everything else, including OAI-SearchBot, Claude-SearchBot, PerplexityBot, Googlebot and Applebot, falls through to the star group and stays allowed. Perplexity documents no separate training crawler, so it has no line here.

Google-Extended and Applebot-Extended are not separate crawlers. Google and Apple keep crawling for search and read these tokens to decide training use. Anthropic adds that a rule naming ClaudeBot takes priority over a general “no AI training” signal elsewhere on your site.

3. Keep private store pages out

User-agent: *
Disallow: /admin
Disallow: /cart
Disallow: /checkout
Disallow: /account
Disallow: /orders

Sitemap: https://example.com/sitemap.xml

These are the paths Shopify’s own default keeps out, because they are private or unique to each shopper. Shopify stores already have them; this block is for stores that build robots.txt by hand. WooCommerce paths depend on your setup, so check your cart, checkout and account addresses before you copy.

Combining 2 and 3? Because of the rule at the top, the named training crawlers in block 2 never read the star group’s private paths. That is fine while they are disallowed from everything. If you later allow one of them, give its group the private paths too.

Where robots.txt stops

It asks; it does not enforce. OpenAI says ChatGPT-User follows a person’s request and robots.txt “may not apply”, and Perplexity says Perplexity-User “generally ignores” it. Keeping those out takes a firewall rule. Three kinds of AI visitor explains why they are treated differently. For training in particular, see Does robots.txt stop AI training?.

It also cannot let in a crawler that something else refuses. If a CDN, host or security plugin turns a crawler away, the file never gets a say. So test the result, not the file. Run a check and compare each crawler’s rule with what it actually got.

Can Google and ChatGPT read your web page?

Free. Sign in with Google or email first, no card.See a sample report