Skip to content
Technical SEO 9 min read By Lewis Jones Editorial policy

Shopify robots.txt: Defaults and How to Edit It

What Shopify's default robots.txt blocks today, when editing robots.txt.liquid is worth it, how to do it without losing the defaults, and how to check it.

Part of Technical SEO Guide: Crawl, Index, Speed

In short

  • Shopify generates robots.txt for every store, and the default blocks admin, cart, checkout, sorted collections, combined tags and multi-filter URLs
  • It leaves products, collections, single tags, single filters, pagination, vendor pages and internal search open, and internal search is the most common reason to edit it
  • You edit it by adding a robots.txt.liquid template to the theme, and the safe edit keeps Shopify's default rules loop and adds lines inside it
  • Do not use robots.txt to remove pages from Google; a blocked page cannot be fetched, so its noindex is never read
  • Save the live file before you change it, diff the output after, and check the version Google fetched in Search Console

Every Shopify store has a robots.txt at /robots.txt that Shopify generates for you. It tells crawlers which URLs to leave alone: the admin, cart and checkout, plus the sorted and combined-filter collection URLs that would otherwise multiply without limit. Shopify's own guidance is that the default works for most stores. You can change it by adding a robots.txt.liquid template to your theme, and the right way to do that is to keep Shopify's default rules and add to them.

This post shows what the default file blocks and leaves open, as served on 19 November 2026, the edits worth making, how to make them safely and how to check them. For the rest of a Shopify audit, see the Shopify SEO audit checklist. For robots.txt on any platform, see how to write a robots.txt file.

What Shopify's default robots.txt blocks

We read the generated robots.txt on three Shopify stores on 19 November 2026. Two were identical apart from one store-specific ID, and the third was a shorter, customised version of the same file. The default has two groups: one for every crawler (User-agent: *) and one for Google's ad crawler, which ignores the general group unless it is named. Older guides list extra groups with crawl delays for bots such as AhrefsBot and MJ12bot; those were not in the files we read.

Everything in the left column is blocked for every crawler, and each rule is repeated for market subfolders such as /en-gb/.

The blocked list targets URLs that multiply: a sort order, two tags joined with +, or two filters at once can turn one collection into thousands of URLs. What it leaves open is what most stores want crawled, plus a few things they may not: single tag and filter pages, vendor pages and internal search results. The current file also starts with comment lines addressed to AI shopping agents. Crawlers ignore comments, so they change nothing about what is blocked.

Should you edit it?

Usually not, and when you do, it should be for a reason you can name. Robots.txt controls what crawlers fetch. It does not control what Google indexes, and most harmful edits come from mixing those two up.

If the problem is in the index rather than the crawl, robots.txt is the wrong tool.

Good reasons to edit it:

  • Internal search is being crawled. The current default no longer blocks /search. Shopify themes send search results with an X-Robots-Tag: noindex header instead, so they stay out of the index, but Google still spends requests on them. A store on a custom front end gets no such header: the three of 49 stores without it in our 23 November 2026 check all ran one. See Shopify noindex.
  • Filter pages fill the crawl. On a large catalogue, single-filter URLs for attributes nobody searches for can outnumber products. Block the parameter for the filters that do not deserve to rank.
  • One crawler needs its own rule. Block an aggressive tool's bot, or allow or block a named AI crawler. The AI crawlers and robots.txt post lists the user agents.

Reasons that need a different tool: a page that is indexed and should not be needs noindex, not a block, because Google cannot read a noindex on a page it is not allowed to fetch. Duplicate product URLs are already handled by Shopify's canonical tag, as the Shopify duplicate content guide shows. And a store you are still building belongs behind the password page; a Disallow: / copied from staging and left live at launch is one of the most common ways a store disappears from Google.

How to edit robots.txt.liquid

Shopify has let stores customise robots.txt through a theme template since 2021. The template replaces the generated file, so the safe edit keeps the default rules and adds lines inside them.

Step one is the one people skip, and it is the only way to prove the edit changed nothing else.
  1. Open /robots.txt on the live store and save a copy.
  2. In the Shopify admin, go to Online Store, then Themes, open the menu on the current theme and choose Edit code. Under Templates, add a new template and choose robots. Shopify fills it with a loop that prints the default rules.
  3. Add your rules inside the loop. To block internal search for every crawler, add one line to the * group:
{% for group in robots.default_groups %}
  {{- group.user_agent }}

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

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

  {%- if group.sitemap != blank -%}
    {{ group.sitemap }}
  {%- endif -%}
{% endfor %}
  1. Save, then open /robots.txt again and compare it with your copy. Only your new line should differ.

To block one crawler entirely, add its own group after the loop, for example User-agent: ExampleBot followed by Disallow: /. Avoid replacing the whole template with plain text rules: the loop picks up changes Shopify makes to the default file later, and plain text freezes today's version. Shopify's documentation also notes that the template's output does not always match the generated file exactly, which is another reason to compare the two.

To undo everything, delete robots.txt.liquid from the theme. Shopify serves its generated file again.

Blocking internal search, step by step

Internal search is the edit most stores need. Every query is its own URL, so /search?q=shirt, /search?q=shirts and every typo are separate pages, and anyone can link a search URL with any words in it.

Order matters: noindex first if search pages are already indexed, then the block once they have gone.

If no search pages are in Google's index yet, the Disallow: /search line above is enough. If some already are, a block would freeze them there, because Google could no longer fetch them to see that they should go. On a theme store the noindex header is already there, so wait until they drop out, then add the block; a custom front end needs a noindex on its search route first. The indexed, though blocked by robots.txt post explains what happens when that order is reversed.

Checking your changes

  • Diff the file. Compare the new /robots.txt with the copy you saved. A missing default rule means the loop was edited, not extended.
  • Search Console's robots.txt report. Under Settings, it shows the robots.txt Google last fetched for the property and any lines it could not parse. Use it to confirm Google has picked up the new version.
  • URL Inspection. Inspect one URL you meant to block and one you did not. Blocked URLs report that crawling is not allowed.
  • Crawl the store. A crawl that obeys robots.txt shows how many URLs the new rule removes, and whether it removed anything you wanted kept.

How Crawl Cove reads a Shopify robots.txt

Crawl Cove obeys robots.txt by default, counts the URLs it skipped in the crawl summary, and reads the file itself as part of the audit:

A blocked training crawler is often a deliberate choice, so it is not graded like a blocked search crawler.
  • A group that blocks Googlebot or Bingbot from the root is reported as robots.txt blocking search engines.
  • Blocked AI crawlers are graded by what they are for: AI search crawlers such as OAI-SearchBot and PerplexityBot at medium, crawlers that fetch one page for a user at low, and training crawlers such as GPTBot for information only.
  • A sitemap missing from the file, or named but missing or unreadable, is reported.
  • A per-crawl option ignores robots.txt, so you can check the blocked pages themselves before you decide to keep the rule.

Shopify notes that blocking AI crawlers in robots.txt affects open-web discovery only, and does not stop Shopify's Catalog from sharing product data with AI shopping agents. To check which AI crawlers a store currently allows, use the AI crawler access checker; to draft rules for a site of your own, the robots.txt generator writes them.

The Free plan crawls up to 1,000 URLs a crawl. Download Crawl Cove and start from the store's home page to see what your robots.txt lets through.

Frequently asked questions

Can you edit robots.txt on Shopify?
Yes. Add a robots.txt.liquid template to the theme under Online Store, Themes, Edit code. The template replaces the generated file, and Shopify provides Liquid objects so you can keep its default rules and add your own. Shopify support does not troubleshoot custom rules, so keep the edit small.
Where is the robots.txt file on Shopify?
At /robots.txt on the store's domain, for example example.com/robots.txt. Shopify generates it, so there is no file to find in the theme until you create a robots.txt.liquid template to override it.
What does Shopify's robots.txt block by default?
On 19 November 2026 the generated file blocked the admin, cart, checkout, account and order pages, sorted collections, collections with two tags combined, URLs with two or more filters, theme preview links and Shopify's internal endpoints. It had two groups, one for every crawler and one for Google's ad crawler.
How do I reset Shopify's robots.txt to the default?
Delete the robots.txt.liquid template from the theme's code editor. Shopify goes back to serving its generated file, with no other steps.
Should I block AI crawlers in Shopify's robots.txt?
Only if you have decided you do not want AI tools to read the store. Blocking AI search crawlers can keep the store out of AI answers that cite sources, while blocking training crawlers only affects model training. Shopify notes that a robots.txt block does not stop its own Catalog from sending product data to AI shopping agents.

Audit your site the easy way

Crawl Cove finds these issues on your machine. Try the SEO Crawler or see every feature.

Download free