NEWOur agents now make the SEO fixes on your site and check what worked →

Shopify robots.txt: The Default File Explained

/

Shopify writes your robots.txt for you. It lets crawlers reach products, collections, pages and blogs, and blocks cart, checkout, account, internal search, policy pages, sort URLs, combined-tag URLs and URLs with two or more filters. You can only change it by adding a robots.txt.liquid template to your theme, which Shopify calls an unsupported customization that can cost you all your traffic if done wrong.

Free spreadsheet

Get the Shopify SEO Checklist

We email you the Shopify SEO checklist now, then 3 short emails on using it. Unsubscribe in one click. We never sell your data. Privacy

This is one of 67 checks in our free Shopify SEO checklist.

Where to See Your robots.txt

Open yourstore.com/robots.txt in a browser. That is the live file. There is no robots.txt in the theme by default: Shopify builds it, and it adds your sitemap line (Sitemap: https://yourstore.com/sitemap.xml) at the end.

The Default File, Line by Line

These are the main rules from the default file of a live Shopify store we checked in October 2026. Your store's file may have a few more lines, and Shopify updates the defaults from time to time.

RuleWhat it blocksWhy
Disallow: /adminYour adminPrivate
Disallow: /cart, /checkout, /checkouts/, /ordersCart and checkoutPrivate, one per visitor
Disallow: /accountCustomer accountsPrivate
Disallow: /collections/*sort_by*Sorted collection viewsSame products, different order
Disallow: /collections/*+*Combined tags, like /collections/shoes/red+leatherEndless combinations
Disallow: */collections/*filter*&*filter*Two or more filters at onceEndless combinations
Disallow: /blogs/*+*Combined blog tagsEndless combinations
Disallow: /searchInternal search resultsThin, endless
Disallow: /policies/Refund, privacy and shipping policiesThin, the same on many stores
Disallow: /*preview_theme_id*Theme previewsNot for the public
Disallow: /recommendations/productsProduct recommendation feedsNot real pages

Shopify also adds separate groups for some bots, such as a crawl delay for AhrefsBot, and a sitemap line in each group.

"Blocked by robots.txt" in Search Console Is Usually Fine

In Search Console > Indexing > Pages, many Shopify stores see hundreds of URLs under Blocked by robots.txt. Open the list. If it is cart, checkout, account, search, sort and filter URLs, that is Shopify working as designed. Do nothing.

Only act if a URL you want in Google is on that list, such as a product or collection. Then something has changed the file, usually a robots.txt.liquid edit or an app.

How to Edit robots.txt on Shopify

Shopify's steps (Shopify Help Center, editing robots.txt.liquid, checked October 2026):

  1. In the admin, go to Online Store > Themes.
  2. Click the three dots on your theme, then Edit code.
  3. Click Add a new template, choose robots, then Create template.
  4. Edit the template and save it on your published theme.

Shopify's warning is worth reading twice: "This is an unsupported customization. Shopify Support can't help with edits to the robots.txt.liquid file... Incorrect use of the feature can result in loss of all traffic."

Safe Edits, with Code

Shopify's developer docs recommend keeping the default rules and adding to them with Liquid, rather than replacing the file with plain text (Shopify Dev, customize robots.txt). The new template starts with code that prints the defaults. To add one rule to the main group:

Code
{% 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 %}

To block one crawler completely, add a new group as plain text after the loop:

Code
User-agent: GPTBot
Disallow: /

Good reasons to edit:

  • A search or filter app creates crawlable URLs with its own parameter.
  • You want to block AI training crawlers.
  • You need an extra sitemap line for a second sitemap.

Bad reasons:

  • Hiding a page from Google. Use noindex, see how to noindex a page in Shopify.
  • Blocking /collections/*/products/*. Those URLs carry a canonical to the clean product URL. Google needs to crawl them to read it.
  • Blocking theme assets or /cdn/. Google needs CSS, JavaScript and images to render your pages.

AI Crawlers on Shopify

Shopify's default file does not block AI crawlers. Each AI company now runs separate bots for training and for search answers:

BotCompanyWhat it does
GPTBotOpenAICollects data for model training
OAI-SearchBotOpenAIFinds pages for ChatGPT search answers
ClaudeBotAnthropicTraining
Claude-SearchBotAnthropicSearch answers in Claude
PerplexityBotPerplexityIndexes pages for Perplexity answers
Google-ExtendedGoogleUse in Gemini models; does not affect Google Search

Sources: OpenAI bots, Google common crawlers. Blocking the search bots can keep your products out of AI shopping answers, so most stores only block training bots, if any.

The Noindex Conflict

Robots.txt controls crawling. Noindex controls indexing. If you block a URL in robots.txt, Google cannot see a noindex tag on it, and the URL can stay in results without a description (Google Search Central, robots.txt intro). For any URL, pick one.

How to Use This with an AI Assistant

Connect SEOmatic at https://seomatic.ai/mcp and ask: "Use check_site on mystore.com and tell me whether my robots.txt blocks Googlebot or the AI search crawlers on any product or collection page. Show me the exact lines." check_site is free and needs no sign-in.

Let the Agents Do This on Your Shopify Store

SEOmatic's AI agents connect to Shopify, read your own Google Search Console data, and make the fixes from this checklist directly in your store:

  • Rewrite SEO titles and meta descriptions on products, collections, pages and blog posts
  • Add product schema and image alt text
  • Set up redirects for deleted or moved URLs

Each change can wait for your approval, one click undoes it, and the agents check it against how the rest of your site did. What they can change depends on your platform, and you see the full list before anything runs.

14-Day Trial for $1, credited to your first payment.

Frequently Asked Questions

digi-business-uk

Each local area page used to take us half a day to create and optimize.


With SEOmatic, we can create hundreds of pages in the same time, which helps our clients make the best use of their budget.


It's transformed how we deliver scalable SEO solutions.

will-hawkins

Will Hawkins

Marketing Director, Digi-Business UK

Give Your Site an SEO Team

Agents read your Search Console data, do the work, and prove what actually moved. You decide what ships.

  • You decide what ships
  • Verified live
  • One-click rollback

14-Day Trial for $1, credited to your first payment.