What the app does with robots.txt
The robots.txt file tells search engines and AI crawlers which parts of your store they may read. The app reads this file and tells you what it finds, but it never changes it. This article explains what is checked, what the statuses mean and how to fix common problems yourself.
What the app does and does not do
- It reads your robots.txt every day and when you change themes. It only reads the file from your store's own primary domain.
- It looks in your live theme for a file named
robots.txt.liquid, to tell whether your theme replaces Shopify's version. - It does not edit robots.txt, and it does not edit theme files. Any fix is done by you in your theme code, so nothing is left behind if you uninstall the app.
- To hide a single page from Google, use the Show this page in search results switch on that page instead. See How to edit a page's meta title, meta description, ALT text and search visibility.
Open the check
- Go to On-page settings.
- In the card robots.txt, select Review.
The page shows what was found, the time of the last check and the name of your live theme. Select Check again after a change. You can check up to 10 times a day. After that the app keeps checking on its own every day.
What the statuses mean
| Status | What it means |
|---|---|
| Shopify manages your robots.txt | Your theme has no robots.txt.liquid. Shopify serves its latest rules |
| Your theme replaces Shopify's robots.txt | Your theme has a robots.txt.liquid. It may only repeat Shopify's rules, add your own rules, or add rules and miss the Sitemap line |
| robots.txt blocks your whole store | The status on the On-page settings card when robots.txt tells every crawler to stay out. On the robots.txt page the heading reads "Search engines can't read any page of your store" |
| ChatGPT or Perplexity search can't read your store | The file blocks OAI-SearchBot or PerplexityBot |
| We couldn't read it yet | The file could not be read. Try again later |
The check also looks for a Sitemap line, and whether GPTBot and Google-Extended are allowed. Blocking the AI training bots is information only and does not lower your score. The issue robots.txt has no sitemap appears when the Sitemap line is missing.
If your theme has custom rules, the table Your custom rules lists each rule with its user agent and a plain explanation of what it does.
Fix common problems
The page shows the steps for your case. In every case you edit your theme in Shopify.
| Case | What to do |
|---|---|
| Your theme only repeats Shopify's rules | Delete templates/robots.txt.liquid from your live theme. Shopify's latest rules and the Sitemap line come back |
| You want to keep custom rules | Add the lines the page lists at the end of robots.txt.liquid. Use Copy to copy them. They bring back Shopify's newer rules for sort and filter pages and the Sitemap line |
| Every crawler is blocked | Remove the line Disallow: / under User-agent: *. If you added it while building the store, use the store password instead |
| AI search bots are blocked | Remove the Disallow: / lines under OAI-SearchBot and PerplexityBot. Keep the GPTBot and Google-Extended blocks if you do not want your content used for AI training |
- Open your theme code from the buttons on the page.
- Make the change in
robots.txt.liquid. - Save the file.
- Return to the app and select Check again.
[!WARNING] A password on your store hides it from search engines. In that case a missing Sitemap line is only information, and Shopify also hides the sitemap while the password is on.
The sitemap
The card Sitemap on On-page settings says Shopify builds /sitemap.xml for you and keeps it up to date. Pages you hide from search are left out of it. Select View hidden pages to see them.
Related articles
- How to add Google, Bing, Pinterest, Yandex and Baidu verification tags
- How the SEO score works
- How to read the Issues, All pages and Passed checks tabs
- Why does the app embed show Off?
← How to add Google, Bing, Pinterest, Yandex and Baidu verification tags