# Shopify robots.txt: Defaults and How to Edit It

Source: https://crawlcove.com/blog/shopify-robots-txt
Published 2026-11-19 · Updated 2026-11-23 · By Lewis Jones

> 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.

## Key takeaways
- 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](https://crawlcove.com/blog/shopify-seo-audit) checklist. For robots.txt on any platform, see [how to write a robots.txt file](https://crawlcove.com/blog/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.

**Figure:**
src: /media/blog/shopify-robots-txt/default-rules.webp
alt: Two columns from Shopify's default robots.txt: blocked are admin, cart, checkout, account and orders, sorted collections, combined tags, two or more filters, theme previews and internal endpoints; open are products, collections, pages, blogs, policies, single tag pages, a single filter, pagination, vendor pages and internal search
label: The default file
caption: Everything in the left column is blocked for every crawler, and each rule is repeated for market subfolders such as /en-gb/.
aspect: 1400/576

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.

**Figure:**
src: /media/blog/shopify-robots-txt/edit-or-not.webp
alt: Three good reasons to edit Shopify's robots.txt, crawled internal search, filter URLs filling the crawl and blocking or allowing one crawler, against three problems that need noindex, a canonical tag or the password page instead
label: Edit or not
caption: If the problem is in the index rather than the crawl, robots.txt is the wrong tool.
aspect: 1400/662

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](https://crawlcove.com/blog/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](https://crawlcove.com/blog/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](https://crawlcove.com/blog/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.

**Figure:**
src: /media/blog/shopify-robots-txt/edit-steps.webp
alt: Five steps to edit Shopify robots.txt safely: save the live file, add the robots template in the theme code editor, add rules inside the default groups loop, diff the output against the saved copy, and check the version Google fetched in Search Console
label: Five steps
caption: Step one is the one people skip, and it is the only way to prove the edit changed nothing else.
aspect: 1400/396

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:

```liquid
{% 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 %}
```

4. 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.

**Figure:**
src: /media/blog/shopify-robots-txt/search-pages.webp
alt: Three steps explaining internal search on Shopify: every query is its own URL, outside links can create search pages with any words, and the fix is Disallow /search in the all-crawlers group added inside the default loop
label: Internal search
caption: Order matters: noindex first if search pages are already indexed, then the block once they have gone.
aspect: 1400/375

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](https://crawlcove.com/blog/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](https://crawlcove.com/ecommerce-seo-crawler) obeys robots.txt by default, counts the URLs it skipped in the crawl summary, and reads the file itself as part of the audit:

**Figure:**
src: /media/blog/shopify-robots-txt/crawl-reads.webp
alt: Five things a Crawl Cove audit reports from robots.txt: search engines blocked, AI search crawlers blocked graded medium, AI user fetchers blocked graded low, AI training crawlers blocked as information, and a missing or broken sitemap line
label: What the audit reads
caption: A blocked training crawler is often a deliberate choice, so it is not graded like a blocked search crawler.
aspect: 1400/551

- 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](https://crawlcove.com/tools/ai-crawler-access-checker); to draft rules for a site of your own, the [robots.txt generator](https://crawlcove.com/tools/robots-txt-generator) writes them.

The Free plan crawls up to 1,000 URLs a crawl. [Download Crawl Cove](https://crawlcove.com/download#free) and start from the store's home page to see what your robots.txt lets through.

## FAQ

### 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.
