Shopify Robots.txt Generator & Liquid Validator

Generate, test, and validate Shopify robots.txt.liquid rules. Prevent /checkout and /cart disallow conflicts, unblock collection filters, and manage AI crawlers safely.

Advertisement
AdSense Placeholder: Top Leaderboard Ad (728x90 / 320x50)

Displayed below main page header or above the tool container. • Zero CLS Container

Need to block AI scrapers without hurting organic search traffic?

Read our full technical guide for GPTBot, ClaudeBot, Google-Extended, and Perplexity directives.

Learn How to Block AI Crawlers in Robots.txt
Shopify Preset Active: Pre-configured with Shopify specific checkout protections, dynamic endpoint routing, and AI crawler blocks.
Presets:

User-Agent Rule Blocks (4)

1Rule Block: *
Forbidden directories
/admin/cart/orders/checkouts//checkout/*design_theme_id*/*preview_theme_id*/*preview_script_id*/policies//search/apple-app-site-association
Exceptions to Disallow
/

Bingbot/Yandex rate limit (ignored by Googlebot)

2Rule Block: GPTBot
Forbidden directories
/
Exceptions to Disallow
No explicit allow exceptions defined

Bingbot/Yandex rate limit (ignored by Googlebot)

3Rule Block: ClaudeBot
Forbidden directories
/
Exceptions to Disallow
No explicit allow exceptions defined

Bingbot/Yandex rate limit (ignored by Googlebot)

4Rule Block: Bytespider
Forbidden directories
/
Exceptions to Disallow
No explicit allow exceptions defined

Bingbot/Yandex rate limit (ignored by Googlebot)

Sitemaps & Host Directives

https://yourstore.myshopify.com/sitemap.xml
Yandex / Legacy REP

Live URL Path Access Tester

0ms Real-Time Simulation

Test whether a specific search engine bot or scraper is permitted to crawl a given URL path under your active configuration.

BLOCKED (Disallowed)/checkout

Blocked by directive "Disallow: /checkout" in User-agent: *

robots.txt
21 lines•477 B
1User-agent: *
2Allow: /
3Disallow: /admin
4Disallow: /cart
5Disallow: /orders
6Disallow: /checkouts/
7Disallow: /checkout
8Disallow: /*design_theme_id*
9Disallow: /*preview_theme_id*
10Disallow: /*preview_script_id*
11Disallow: /policies/
12Disallow: /search
13Disallow: /apple-app-site-association
14
15User-agent: GPTBot
16Disallow: /
17
18User-agent: ClaudeBot
19Disallow: /
20
21User-agent: Bytespider
22Disallow: /
23
24Host: https://yourstore.myshopify.com
25Sitemap: https://yourstore.myshopify.com/sitemap.xml
Deployment Quick Tip

Upload this generated file directly to your web server's root directory so it is accessible at https://yourdomain.com/robots.txt.

Advertisement
AdSense Placeholder: Native In-Feed Ad (Responsive)

Separates the interactive tool output from the deep technical guide. • Zero CLS Container

Direct Answer: Shopify Default Crawler Behavior

By default, Shopify automatically serves a server-generated robots.txt file that blocks crawlers from accessing checkout paths (/checkout, /checkouts/, /cart, /orders), internal search queries (/search), and localized currency switchers. To customize these rules, you must create a templates/robots.txt.liquid file in your theme. Crucially, your Liquid template must iterate through `for group in robots.default_groups` to preserve Shopify's core security rules while appending your custom Disallow, Allow, or AI crawler directives.

How to Safely Customize Shopify's robots.txt.liquid Without De-indexing Collections

Technical deep dive into Shopify robots configuration quirks and indexing safety

Shopify manages crawler indexation through a native templating system introduced in Online Store 2.0. Rather than uploading a static robots.txt file to the server root (which Shopify's hosted architecture does not allow), Shopify renders the file dynamically via templates/robots.txt.liquid.

The Native Liquid robots.default_groups Architecture

In standard Shopify themes (such as Dawn, Sense, Spotlight, and Prestige), the default templates/robots.txt.liquid file contains the following core Liquid loop:

# robots.txt.liquid
{% for group in robots.default_groups %}
  {{- group.user_agent -}}

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

  {%- if group.sitemap != blank -%}
    {{ group.sitemap }}
  {%- endif -%}
{% endfor %}

This loop pulls Shopify's platform-managed disallow rules, protecting critical checkout infrastructure:

  • Protected Checkout Endpoints: /cart, /orders, /checkouts/, and /checkout are automatically disallowed to prevent search bots from indexing abandoned carts and private user checkouts.
  • Internal Search & Policies: /search and /policies/ are excluded to prevent crawl budget waste on thin search parameter URLs.
  • Faceted Collection Filters: Shopify by default adds directives preventing indexation of multi-tag collection permutations (e.g., /collections/*/* or URL parameters containing filter.).

How to Safely Append Custom Rules in Shopify

When customizing your Shopify robots directives, never delete the for group in robots.default_groups loop entirely. Instead, inject your custom rules directly below or within conditional blocks:

# Appending Custom AI Restrictions in Shopify robots.txt.liquid
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Bytespider
Disallow: /

# Retain Shopify Platform Core Rules
{% for group in robots.default_groups %}
  {{- group.user_agent -}}
  {% for rule in group.rules %}
    {{- rule -}}
  {% endfor %}
  {%- if group.sitemap != blank -%}
    {{ group.sitemap }}
  {%- endif -%}
{% endfor %}

How to Configure Shopify Robots Directives (Step-by-Step)

Four proven steps to safely deploy robots.txt rules in Shopify

  1. 1

    Open Shopify Theme Code Editor

    Log in to your Shopify Admin, navigate to Online Store > Themes, click the three dots (...) next to your active theme, and select 'Edit code'.

  2. 2

    Create templates/robots.txt.liquid Template

    In the left sidebar, click 'Add a new template', choose 'robots.txt' from the dropdown list, and name the file `robots.txt.liquid`.

  3. 3

    Insert Custom Directives Inside Liquid Loop

    Paste your customized directives into `robots.txt.liquid`, making sure to preserve the `for group in robots.default_groups` loop for core platform checkout protection.

  4. 4

    Validate Syntax in OmniSEO Validator

    Visit `https://yourstore.myshopify.com/robots.txt` in your browser, copy the rendered output, and paste it into our validator to confirm 100% RFC 9309 compliance.

Shopify Robots.txt FAQ

Troubleshooting crawler errors, file overrides, and CMS-specific directives

What happens if I delete robots.txt.liquid in Shopify?

Deleting `templates/robots.txt.liquid` from your Shopify theme does not leave your store without a robots.txt file. Instead, Shopify automatically reverts to serving its default, platform-managed robots.txt output, which safely blocks `/checkout`, `/cart`, `/orders`, and admin endpoints.

Why does Shopify disallow /checkout and /cart by default?

Shopify disallows `/checkout`, `/checkouts/`, `/cart`, and `/orders` to prevent search engine crawlers from wasting crawl budget on dynamic, non-indexable user cart sessions and private customer checkout pages that could trigger duplicate content flags.

How do I unblock collection filter parameters in Shopify robots.txt?

To unblock faceted collection filter URLs, locate the default disallow filter in `robots.txt.liquid` and add an explicit `Allow: /collections/*?filter.*` or customize the Liquid loop conditions to allow search engines to crawl specific indexing-friendly filter facets.

CMS & Framework Robots Directives

Switch presets to configure and validate robots.txt files for your specific tech stack

Looking for generic robots rules? Use the Universal Robots.txt Generator & Validator.

Related Tools & Next Workflow Steps

Complementary utilities to streamline your SEO audit, indexing, and content strategy.

Browse All 35 Utilities
New

LLMs.txt & AI Crawler Directive Generator

Generate standard /llms.txt files and configure granular robots.txt AI bot directives for OpenAI, Claude, Google, and Perplexity.

technicalOpen
New

XML Sitemap Generator & Validator

Generate standard XML sitemaps from URL batches, customize crawl priorities, and validate existing sitemap XML client-side.

technicalOpen
New

Redirect Rule & Regex Mapper

Generate, test, and export 301 and 302 redirect rules for Next.js, Nginx, Apache, and Cloudflare with real-time regex path testing.

technicalOpen
New

Bulk Canonical Normalizer & Auditor

Audit raw URLs in bulk, strip tracking parameters (UTMs/gclid), enforce trailing slash rules, and detect duplicate content risks.

technicalOpen
Advertisement
AdSense Placeholder: Top Leaderboard Ad (728x90 / 320x50)

Displayed below main page header or above the tool container. • Zero CLS Container