Shopify robots.txt: what the default blocks, how to edit it, and AI crawler rules

A robots.txt file with rules for search and AI crawlers

Shopify's default robots.txt lets search engines crawl your products, collections, pages and blog posts, and blocks the URLs that are private or duplicate: admin, cart, checkout, account and order pages, plus sorted and filtered collection URLs. You can change it by adding a robots.txt.liquid template to your theme, but Shopify says the default works for most stores, and in late 2026 it doesn't block any AI crawlers.

So the real decision for most merchants isn't "how do I fix my robots.txt". It's which AI crawlers you want reading your store, and whether the rules in your file match that choice. This guide covers what the default does, how to edit it safely, the AI crawler tokens that matter, and how to test the result.

Where your Shopify robots.txt lives

Every Shopify store serves its file at yourstore.com/robots.txt. Open it in a browser now. You can't upload a robots.txt file to Shopify, because Shopify generates it for you. The only way to change it is the robots.txt.liquid theme template.

A robots.txt file is a set of groups. Each group names a crawler (User-agent), then lists Allow and Disallow rules for paths, and the file can list sitemap URLs. A crawler follows the group that names it most specifically, and falls back to the User-agent: * group if nothing names it.

What Shopify's default robots.txt blocks, and why

We compared the live robots.txt on four Shopify stores in November 2026, including Shopify's own Dawn and Horizon theme demo stores. Apart from the store ID and the sitemap address, the files were identical, which tells you this is Shopify's current default rather than a theme choice. It has two groups, one for all crawlers (*) and one for adsbot-google, and one sitemap line.

Here's what the * group does, in plain terms:

Rule (examples) What it covers Why it's blocked
Allow: /
Everything not listed below
Public content stays crawlable
Disallow: /admin
Your Shopify admin
Crawlers can't log in anyway
Disallow: /cart/, /checkout, /checkouts/, /orders, /account
Carts, checkout, orders, customer accounts
Specific to one customer, no search value
Disallow: /collections/*sort_by*
Sorted collection URLs
Same products in a different order
Disallow: /collections/*+*
Tag combinations, such as /collections/shirts/blue+cotton
Near-duplicate collection pages
Disallow: /collections/*filter*&*filter*
Collection URLs with two or more filters
Filter combinations multiply into thousands of URLs
Disallow: /*?*preview_theme_id=*
Theme preview links
Unpublished versions of your pages
Disallow: /cart.js, /recommendations/products
Data endpoints your theme calls in the background
Not pages; the file's own comment says agents should use Shopify's agent interfaces instead
Disallow: /services, /sf_*, /cdn/wpm/*.js
Shopify's internal endpoints and scripts
Not meant for crawlers

Most rules are repeated with a /*/ prefix (for example /*/collections/*sort_by*) so it also covers your Shopify Markets language and country folders, such as /en-ca/.

A few details are easy to miss:

  • One filter is crawlable, two aren't. A URL such as /collections/shirts?filter.v.color=blue can be crawled. Add a second filter and it's blocked. If single-filter pages are getting indexed and you don't want them, your theme's canonical tags are the first thing to check, not robots.txt.
  • Search results aren't in robots.txt any more. Older versions of the default file had Disallow: /search and Disallow: /policies/. The current one doesn't. When we requested a search results page on a demo store, Shopify sent it with an X-Robots-Tag: noindex, nofollow header, which keeps it out of Google's index without blocking the crawl.
  • AdsBot gets its own group. Google's ads crawlers ignore the * group unless they're named, so Shopify repeats the checkout and order rules for adsbot-google.
  • There's a comment block at the top pointing AI agents to your store's /agents.md file and Shopify's Universal Commerce Protocol (UCP) endpoints. Comments don't change what crawlers may fetch.

Shopify's help center adds a note worth knowing: if your theme has an old robots.txt.liquid from years ago, your file may still include rules the default dropped, such as Disallow: /search. Deleting the template brings back the current default.

Does Shopify block AI crawlers by default?

No. The default file has no group for GPTBot, ClaudeBot, PerplexityBot or any other AI crawler, so they all follow the * group and can read your public pages. Shopify's help center says it also handles bot management at the network level for every store, without action from you, but it doesn't publish a list of which bots that layer slows or blocks.

There's a second route AI assistants can use that robots.txt doesn't touch. Shopify says blocking AI crawlers affects only open-web discovery. It doesn't stop Shopify Catalog sending your product data to agentic storefronts you've turned on, such as ChatGPT or Microsoft Copilot. You control those in Sales channels > Agentic in your admin. Our Shopify agentic commerce guide explains how those channels work.

When you should and shouldn't edit it

Shopify's warning is blunt. Editing robots.txt.liquid is "an unsupported customization," Shopify Support can't help with it, and "incorrect use of the feature can result in loss of all traffic." Shopify recommends working with a Shopify Partner or someone with code and SEO experience.

Good reasons to edit:

  • Setting rules for specific AI crawlers, such as blocking training crawlers while allowing search crawlers.
  • Blocking a crawl trap an app creates, for example a URL parameter that generates thousands of near-identical pages.
  • Adding an extra sitemap, for example one for a blog or help center hosted on a subdomain.
  • Host-specific rules if you run Shopify Markets on separate domains that need different crawling.

Bad reasons to edit:

  • Keeping a page out of Google. Google says robots.txt "is not a mechanism for keeping a web page out of Google." A blocked URL can still appear in results, just without a description. Use noindex instead (see below).
  • Hiding a product. Set it to Draft, or Unlisted if you want it reachable by link only.
  • Fixing "Indexed, though blocked by robots.txt" in Search Console. Shopify says this message is normal for intentionally blocked URLs and usually needs no action.
  • Slowing Google down. You can add Crawl-delay rules, but Googlebot ignores them.

How to edit robots.txt.liquid

  1. In your Shopify admin, go to Online Store > Themes.
  2. Save a copy of your current file first: open yourstore.com/robots.txt and save the text. Shopify recommends comparing it with your new output before you publish.
  3. On your published theme, click the ... menu, then Edit code.
  4. Under Templates, click Add a new template, choose robots, then click Create template.
  5. Make sure the template contains the Liquid loop that outputs Shopify's default rules (the {% for group in robots.default_groups %} block in the examples below). If it's empty, paste that loop in. Keep it, and make your changes around it.
  6. Click Save, then reload yourstore.com/robots.txt and compare it with your saved copy line by line.

Shopify's developer docs strongly recommend keeping the Liquid objects rather than pasting the whole file as plain text. The Liquid version picks up Shopify's future changes to the default rules; a pasted copy freezes them.

Two practical warnings. The template lives in a theme, and Shopify says uploading a theme in the Themes section won't import robots.txt.liquid, so add it to any new theme before you publish it. And to go back to the default at any time, right-click robots.txt.liquid in the code editor and choose Delete permanently.

If you'd rather not touch theme code, a vetted Shopify expert can make and test the change.

Liquid examples from Shopify's docs

These follow the examples in Shopify's developer documentation for robots.txt.liquid.

Add a rule to the default group

This adds a rule to the * group, blocking any URL with a ?q= parameter:

{% for group in robots.default_groups %}
  {{- group.user_agent }}

  {%- for rule in group.rules -%}
    {{ rule }}
  {%- endfor -%}

  {%- if group.user_agent.value == '*' -%}
    {{ 'Disallow: /*?q=*' }}
  {%- endif -%}

  {%- if group.sitemap != blank -%}
    {{ group.sitemap }}
  {%- endif -%}
{% endfor %}

Swap /*?q=* for the pattern you need. Test it against a few real URLs first: * matches any run of characters, so a short pattern can block far more than you meant.

Remove a default rule

Wrap the rule output in an unless check. Shopify's example skips the old Disallow: /policies/ rule:

{% for group in robots.default_groups %}
  {{- group.user_agent }}

  {%- for rule in group.rules -%}
    {%- unless rule.directive == 'Disallow' and rule.value == '/policies/' -%}
      {{ rule }}
    {%- endunless -%}
  {%- endfor -%}

  {%- if group.sitemap != blank -%}
    {{ group.sitemap }}
  {%- endif -%}
{% endfor %}

The current default no longer has that rule, so this check does nothing on most stores. Change rule.value to match the exact rule you want gone, as it appears in your /robots.txt.

Add a crawler group or a sitemap

Rules for a crawler Shopify doesn't name go as plain text after the default Liquid, and so do extra sitemaps:

{% for group in robots.default_groups %}
  {{- group.user_agent }}

  {%- for rule in group.rules -%}
    {{ rule }}
  {%- endfor -%}

  {%- if group.sitemap != blank -%}
    {{ group.sitemap }}
  {%- endif -%}
{% endfor %}

User-agent: discobot
Disallow: /

Sitemap: https://help.yourstore.com/sitemap.xml

Your main sitemap is already listed. Our Shopify sitemaps guide covers what's in it.

AI crawler rules: which user-agents matter

Most AI companies now run separate crawlers for training models and for answering users, and you can treat them differently. These tokens come from each company's own documentation:

Token Company Type What blocking it does
GPTBot
OpenAI
Training
Signals your content shouldn't be used to train OpenAI's models
OAI-SearchBot
OpenAI
Search
Keeps you out of ChatGPT search answers (you may still appear as a plain link)
ChatGPT-User
OpenAI
User request
OpenAI says robots.txt rules "may not apply," because a person asked for the page
ClaudeBot
Anthropic
Training
Excludes your future content from Anthropic's training data
Claude-SearchBot
Anthropic
Search
Stops Claude indexing your pages for search answers
Claude-User
Anthropic
User request
Stops Claude fetching your pages when a user asks
PerplexityBot
Perplexity
Search
Keeps you out of Perplexity's search results; Perplexity says it isn't used for training
Google-Extended
Google
Training and grounding
Opts out of Gemini training and grounding; Google says it doesn't affect inclusion or ranking in Google Search
Applebot-Extended
Apple
Training
Opts out of Apple's foundation model training; Apple says it doesn't crawl and doesn't affect Apple's search
CCBot
Common Crawl
Open dataset
Keeps you out of Common Crawl's open web archive, a dataset AI developers widely use
Bingbot
Microsoft
Search
Removes you from Bing search, which Microsoft Copilot draws on for web answers

Three points from that table matter most:

  • Google AI Overviews and AI Mode use Googlebot, not Google-Extended. Google says the control for its AI search features is robots.txt for Googlebot, plus nosnippet and noindex. You can't block AI Overviews and keep normal Google rankings with robots.txt.
  • Bing has no separate Copilot token. Bing controls AI use with page-level noarchive and nocache tags rather than robots.txt. Microsoft has signalled changes to these controls, so check Bing's webmaster documentation before relying on them.
  • User-request fetchers are different. ChatGPT-User and Perplexity-User (Perplexity says it "generally ignores robots.txt rules") act for a person in the moment. Anthropic says its bots honor robots.txt.

Should you block GPTBot?

For a store that sells products, our default advice is: allow the search crawlers, and treat the training crawlers as a business call.

Blocking OAI-SearchBot, Claude-SearchBot or PerplexityBot can keep you out of those assistants' answers, and that's where some shoppers now ask "what's the best waterproof jacket under $200". Blocking GPTBot, ClaudeBot, Google-Extended, Applebot-Extended or CCBot doesn't remove you from search answers. It keeps your future content out of training data.

The trade-off: product pages are mostly marketing copy you'd happily see repeated, and a model that has learned your brand may describe it more accurately. If you publish original work, such as detailed buying guides or test data, you may decide training access isn't worth giving away. Nobody can promise that allowing training crawlers gets you recommended, and assistants change their answers week to week. If you block, blocking only affects future crawls. Content already collected stays where it is.

To block the training crawlers and leave search crawlers on the default rules, add this after the default Liquid:

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: CCBot
Disallow: /

One catch: once a crawler has its own group, it ignores the * group entirely. If you ever write an Allow-style group for a named crawler, copy the cart, checkout and filter rules into it too, or it will crawl them. OpenAI and Perplexity both say changes can take about 24 hours to take effect.

robots.txt vs noindex vs llms.txt

They do three different jobs:

robots.txt noindex llms.txt
What it controls
Whether a crawler may fetch a URL
Whether a fetched page goes in the index
Nothing; it's a reading guide
Where it lives
/robots.txt
A meta tag or X-Robots-Tag header on the page
/llms.txt
On Shopify
robots.txt.liquid
Theme code or an SEO app; search pages already get it
Served by default; edit with llms.txt.liquid
Respected by
Major search and AI crawlers, per their docs
Google, Bing and other search engines
No confirmed use by major assistants

The trap: if you block a URL in robots.txt, crawlers never see its noindex tag, so the URL can stay indexed. To remove a page from Google, allow the crawl and add noindex. And a carefully written llms.txt can't help if robots.txt blocks the crawler from your pages. Our llms.txt for Shopify guide covers what Shopify now serves there.

How to test your robots.txt

  1. Open yourstore.com/robots.txt in a private window and read it top to bottom. Check your custom groups appear once, and that the default * rules are still there.
  2. Check the robots.txt report in Google Search Console. Go to Settings, then open the robots.txt report. It lists the robots.txt files Google found for your property, when it last crawled each one, and any warnings or errors. It only works for domain-level properties. Use the menu next to a file to Request a recrawl after a change, though Google says you usually don't need to.
  3. Test important URLs with URL Inspection. Paste a product and a collection URL and confirm crawling is allowed. Google's old robots.txt Tester has been replaced by these two tools.
  4. Watch the Pages report over the next few weeks for new "Blocked by robots.txt" entries on pages you want indexed.

New to Search Console? Our guide to using Google Search Console for Shopify SEO shows where each report is. robots.txt is one small part of technical SEO; the Shopify SEO guide covers the rest.

What to do next

  1. Open your /robots.txt and compare it with the default described above. If you see Disallow: /search or /policies/, your theme has an old template worth reviewing.
  2. Decide, crawler by crawler, which AI training and search crawlers you allow, and write the decision down.
  3. If anything needs to change, save a copy of the current file, add robots.txt.liquid, keep the default Liquid and add your groups after it.
  4. Check Sales channels > Agentic so your agentic storefront settings match your crawler decision.
  5. Confirm the result in Search Console's robots.txt report, and add "check robots.txt.liquid" to your checklist for every theme change.

Frequently asked questions

Can I edit robots.txt on Shopify?
Yes. Add a robots.txt.liquid template in Online Store > Themes > ... > Edit code > Add a new template > robots, and it replaces the file Shopify generates. Shopify calls this an unsupported customization, so Shopify Support can't help with it, and a wrong edit can cost you search traffic.
Should I block GPTBot on my Shopify store?
For most product stores, no. GPTBot collects content that may be used to train OpenAI's models, and blocking it doesn't remove you from ChatGPT search, which uses OAI-SearchBot. Block it if you don't want your content used for training, and leave OAI-SearchBot allowed if you want to appear in ChatGPT answers.
Does blocking AI crawlers remove my store from ChatGPT?
Only if you block the search crawler. OpenAI says sites that opt out of OAI-SearchBot won't be shown in ChatGPT search answers, while blocking GPTBot only opts you out of training. Shopify also says robots.txt doesn't stop Shopify Catalog sending your product data to agentic storefronts you've turned on, such as ChatGPT.
What's the difference between robots.txt and llms.txt?
robots.txt tells crawlers which paths they may crawl, and the major search and AI companies say their crawlers follow it. llms.txt is a Markdown reading guide for AI tools that can't allow or block anything, and no major assistant has confirmed using it. See our llms.txt for Shopify guide.
Why does Shopify block /collections/*sort_by*?
A sorted collection URL such as /collections/shirts?sort_by=price-ascending shows the same products as /collections/shirts in a different order. Blocking it stops crawlers spending time on duplicate pages, so they reach your products and unsorted collections instead.