# Shopify robots.txt

> Check Shopify

Canonical: https://scaplet.com/seo/shopify/robots-txt

Guide Shopify Shopify · Crawling

Check Shopify's generated robots.txt, understand its ecommerce crawl rules, safely add Liquid customizations, and distinguish crawling from indexing.

4 min

read

3

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

Shopify generates a default `/robots.txt` that it says works for most stores. Read the live file before changing it. A custom `robots.txt.liquid` template replaces the generated output, so preserve Shopify's default rule groups with the supported Liquid objects and compare the rendered result before publishing. Use robots.txt to manage crawler access, not to hide a product from search or protect private data.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Frobots-txt%20(%22Shopify%20robots.txt%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Frobots-txt%20(%22Shopify%20robots.txt%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Frobots-txt%20(%22Shopify%20robots.txt%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Frobots-txt%20(%22Shopify%20robots.txt%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 4 minutes.

1. [Inspect the rules before you add any 01](#inspect-the-rules-before-you-add-any)
2. [Understand what robots.txt can and cannot do 02](#understand-what-robots-txt-can-and-cannot-do)
3. [Customize through the theme only for a specific case 03](#customize-through-the-theme-only-for-a-specific-case)
4. [Separate open-web crawling from Shopify Catalog 04](#separate-open-web-crawling-from-shopify-catalog)

_01_Crawl rules need an ecommerce reason

## Inspect the rules before you add any

Open `https://your-store.example/robots.txt` on the primary domain. Shopify generates this file for every store and says its default is right for most stores. Shopify says its default rules keep admin pages, cart links, checkout pages, and sorted collection pages from being crawled.

Default rule

### `Disallow: /admin`

What Shopify says it does

Keeps admin pages from being crawled

What to verify

Leave it in place

Default rule

### `Disallow: /cart/`

What Shopify says it does

Keeps cart links from being crawled

What to verify

Do not use cart pages as SEO landing pages

Default rule

### `Disallow: /checkout` and `Disallow: /checkouts/`

What Shopify says it does

Keep checkout pages from being crawled

What to verify

Do not remove these to expose the purchase flow

Default rule

### `Disallow: /collections/*sort_by*`

What Shopify says it does

Keeps sorted collection pages from being crawled

What to verify

Keep the plain [collection page](/glossary/category-pages) crawlable

Read the response after a theme, app, CDN, or robots template change. Shopify says the `robots` Liquid object provides the default rule groups, but rendered template output does not always match its generated file exactly, so the public root URL is the proof of what crawlers receive.

_02_Checklist

## Understand what robots.txt can and cannot do

[Robots.txt](/glossary/robots-txt) controls crawling instructions. It is public and does not require a password, block shoppers, or reliably remove a URL from Google. Google says it might still find and index a disallowed URL that is linked from other places on the web, and it cannot read a `noindex` on a page it is not allowed to crawl. If a discontinued product should leave search, decide whether to keep it available, redirect it to a close replacement, or return a real not-found response; do not block it and expect that to deindex the URL.

1. 01 Block a path only when you have a specific crawl-management reason, such as duplicate filter URLs or customer-specific utility pages.
2. 02 Use page-level `noindex` when a publicly accessible page should not appear in search, and allow Google to crawl it so it can see the directive.
3. 03 Use authentication or access control for unreleased products, wholesale pricing, or private customer content.
4. 04 Keep product, collection, image, CSS, and JavaScript resources crawlable when Google needs them to understand the storefront page.

**Do not replace the whole file with a hand-written block list**Shopify developer docs say you can replace all template content with plain text rules, but it is strongly recommended to use the provided Liquid objects. The help center says Liquid preserves Shopify's ability to keep the file updated automatically.

_03_How it works

## Customize through the theme only for a specific case

Shopify's supported customization is a `robots.txt.liquid` template in the theme's Templates folder. The template replaces the generated output. The template supports only these Liquid objects: `robots`, `group`, `rule`, `user_agent`, `sitemap`, and `request`. Shopify says to save a copy of your current `/robots.txt` output and compare it with the rendered template output before you publish.

Shopify calls this an unsupported customization, says Shopify Support can't help with edits, and warns that incorrect edits risk loss of all traffic. Its guidance is to work with a Shopify Partner or have expertise in code edits and SEO. It also says to remove any previous customizations or workarounds, such as a third-party service like Cloudflare, before you edit the file.

1. 01

### Confirm the requirement

Write down the exact user-agent or URL pattern, why it should be crawled differently, and which normal storefront pages must remain accessible.
2. 02

### Add a template

In the code editor for the theme you want to edit, right-click the Templates folder, choose New File, and name it `robots.txt.liquid`. The help center describes the same step as Add a new template, then robots. Loop over `robots.default_groups` so the default groups stay, then add or remove the narrow rule.
3. 03

### Save and compare

Save in the published theme. Compare the rendered `/robots.txt` with the backup. Check that the sitemap line and every expected rule group remain present. To revert, delete `robots.txt.liquid` and Shopify restores the default.
4. 04

### Test the live behavior

Inspect representative product, collection, and filter URLs against the rendered file. Shopify says changes are instant, but crawlers do not always react immediately.

_04_Check it

## Separate open-web crawling from Shopify Catalog

Shopify says blocking AI crawlers at the `/robots.txt` or network layer affects only open-web discoverability. It does not stop Shopify Catalog from sending your product data to the agentic storefronts you have activated. Review the relevant storefront distribution settings when the concern is where product data is syndicated.

For related checks, see [Shopify's sitemap guide](/seo/shopify/xml-sitemap), [Shopify SEO overview](/seo/shopify), and Google's [robots.txt introduction](/glossary/robots-txt). If [Search Console](/glossary/google-search-console) reports “indexed, though blocked by robots.txt,” Shopify says this is normal behavior and usually not a cause for concern; inspect whether the blocked URL should be discoverable before changing a default rule.

Add a rule to the * group (from Shopify developer docs: block ?q= URLs)

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

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- shopify.com
- shopify.dev
- google.com

1. 01 [Editing robots.txt.liquid | Shopify Help Center](https://help.shopify.com/en/manual/promoting-marketing/seo/editing-robots-txt) help.shopify.com · checked 2026-10-24
2. 02 [Customize robots.txt | Shopify Developers](https://shopify.dev/docs/storefronts/themes/seo/robots-txt) shopify.dev · checked 2026-10-24
3. 03 [Introduction to robots.txt | Google Search Central](https://developers.google.com/search/docs/crawling-indexing/robots/intro) developers.google.com · checked 2026-10-24

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ Should I edit Shopify robots.txt?

Usually no. Shopify says its generated default works for most stores. Customize `robots.txt.liquid` only for a specific, tested crawl requirement, and preserve the default rule groups.

_02_ Does Shopify robots.txt remove a product from Google?

No. Robots rules control crawling and do not guarantee deindexing. Google might still index a blocked URL that is linked from elsewhere. Use a crawlable `noindex`, a relevant redirect, or an appropriate not-found response for the intended outcome.

_03_ Does blocking AI crawlers stop Shopify Catalog from sharing products?

No. Shopify says blocking AI crawlers at /robots.txt or the network layer affects only open-web discoverability. It does not stop Shopify Catalog from sending product data to activated agentic storefronts.

## Keep learning

[All platform guides](/seo)

[Learn Shopify SEO Ecommerce](/seo/shopify) [Related Googlebot Google](/ai-crawlers/googlebot) [Read next Shopify AI crawlers Ecommerce](/seo/shopify/ai-crawlers) [Do Run a free site audit Free, about two minutes](/site-audit)

More in Shopify SEO
[Shopify 404 page](/seo/shopify/404) [Shopify AI crawlers](/seo/shopify/ai-crawlers) [Shopify breadcrumbs](/seo/shopify/breadcrumbs) [Shopify canonical tags](/seo/shopify/canonical-tags) [Shopify favicon](/seo/shopify/favicon) [Shopify Google Analytics](/seo/shopify/google-analytics) [Shopify Google Search Console setup](/seo/shopify/search-console) [Shopify hreflang](/seo/shopify/hreflang) [Shopify image SEO](/seo/shopify/image-seo) [Shopify lazy loading](/seo/shopify/lazy-loading) [Shopify noindex](/seo/shopify/noindex) [Shopify redirects](/seo/shopify/redirects) [Shopify robots.txt](/seo/shopify/robots-txt) [Shopify speed optimization](/seo/shopify/page-speed) [Shopify structured data](/seo/shopify/structured-data) [Shopify titles and meta descriptions](/seo/shopify/title-and-meta) [Shopify XML sitemap](/seo/shopify/xml-sitemap)

Terms on this page
[Category pages](/glossary/category-pages) [robots.txt](/glossary/robots-txt) [Google Search Console](/glossary/google-search-console)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
