Free auditStart free
GuideShopify · Crawling

Shopify robots.txt

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 withChatGPTClaudePerplexityGoogleAI Mode
02Checklist

Understand what robots.txt can and cannot do

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. 01Block a path only when you have a specific crawl-management reason, such as duplicate filter URLs or customer-specific utility pages.
  2. 02Use 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. 03Use authentication or access control for unreleased products, wholesale pricing, or private customer content.
  4. 04Keep product, collection, image, CSS, and JavaScript resources crawlable when Google needs them to understand the storefront page.
03How 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.

04Check 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, Shopify SEO overview, and Google's robots.txt introduction. If 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. 01Editing robots.txt.liquid | Shopify Help Centerhelp.shopify.com · checked 2026-10-24
  2. 02Customize robots.txt | Shopify Developersshopify.dev · checked 2026-10-24
  3. 03Introduction to robots.txt | Google Search Centraldevelopers.google.com · checked 2026-10-24
Questions

Asked a lot.

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

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

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

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

Free · 2 minutes

Tools point. Agencies advise. This one ships.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane