robots.txt: control what search engines can crawl
Understand what robots.txt does in your Shoporama store, what the default content is, how to add your own rules, and when to use noindex instead.
Your online store is visited by far more than your customers. Google, Bing, price comparison services, AI bots, and a long list of other programs crawl your pages automatically. The robots.txt file is the little note you hang on the door for them: it tells search engine crawlers which parts of the store they are welcome to look at, and which they should leave alone.
Shoporama creates and maintains your robots.txt automatically, so you don't need to do anything to get off to a good start. If you want extra control, you can add your own lines. This guide covers everything: what the file does, what it contains by default, how to edit it, and which mistakes to avoid.
What is robots.txt?
robots.txt is a plain text file in the root of your domain. You can see your own by typing /robots.txt after your store's address in the browser, for example https://dinshop.dk/robots.txt. Try it while you read along, so the examples below are easier to follow.
The file contains lines in a very simple format. A crawler reads the file before it starts fetching pages, and follows the instructions it finds. The most important words in the file are:
- User-agent: who the rules apply to. An asterisk means "all crawlers".
- Disallow: a path the crawler shouldn't fetch.
- Allow: an exception, meaning a path the crawler may fetch even though something broader is blocked.
- Sitemap: a reference to your sitemap, which is the list of all the pages you want to be found.
It's important to understand one thing right away: robots.txt is a polite request, not a lock. The file is public, and anyone can read it. The major search engines respect it, but it doesn't stop anyone from opening a page manually. So never write anything in robots.txt that you don't want strangers to see, and never use it to protect sensitive content.
What your robots.txt looks like by default
If you haven't changed anything, your robots.txt in Shoporama looks like this, just with your own domain in the Sitemap line:
User-agent: * Sitemap: https://dinshop.dk/sitemap.xml Disallow: /basket$ Disallow: /address Disallow: /payment Disallow: /shipping Disallow: /approve Disallow: /thanks Disallow: /order Disallow: /download-file Disallow: /product_review Disallow: /systr Disallow: /sysreco$ Disallow: /recommendations$ # Powered by Shoporama
In plain English, it says: "Dear crawlers. Here is the list of my pages. Please don't poke around in the cart, the address form, the shipping options, the payment, the approval page, the receipt page, the order pages, file downloads, and product reviews. Also skip the three addresses the store uses in the background."
The last three lines aren't pages, but addresses that the store's own code sends data to. /systr counts visits for the statistics, /sysreco measures views and clicks on the recommendations, and /recommendations loads the recommendation box itself. Google finds these addresses in the page's code and tries to visit them. Without these lines, they can show up as errors in Google Search Console, even though everything works as it should.
There are two good reasons why exactly these pages are blocked. First, they make no sense in a search result. Nobody benefits from landing in an empty shopping cart straight from Google. Second, crawlers spend a limited amount of time on your store, which is called crawl budget. Every time a crawler fetches a page that shouldn't be in the search results, that's time it doesn't spend on your products and categories. In other words, these lines help your pages that actually sell get discovered faster.
The Sitemap line points to your sitemap, which Shoporama generates automatically from your products, categories, pages, landing pages, and blog posts. You don't have to maintain it yourself, and you don't have to add it to robots.txt manually.
You can't delete the lines Shoporama adds itself. That's intentional. These are exactly the kind of mistakes that are most expensive to make, and the default rules fit almost every online store.
How to edit your robots.txt
- Go to Webshop → robots.txt and llms.txt in the admin menu.
- The robots.txt and llms.txt page opens. At the top is the Customize robots.txt box.
- Type your extra lines in the Extra rules field. One rule per line.
- Click Save at the bottom of the page. The button saves both robots.txt and llms.txt.
- Open https://dinshop.dk/robots.txt in the browser, refresh the page, and check that the result looks the way you expect.
The change takes effect immediately, and there is no cache to clear. Right below the field is a small help box with examples of rules you can add.

Note that the field is called Extra rules for a reason: what you write is added on top of Shoporama's own lines, not instead of them. Your lines are inserted right after User-agent: * and before the Sitemap line and the default rules.
The field applies to one store at a time. If you have several stores in the same account, you need to set it up in each store. On the other hand, the content is carried over if a store is copied.
Rules that make sense for an online store
Most online stores never need to write anything at all in the field. The default setup is good. But there are a few situations where an extra line is a good idea.
Internal pages nobody should find in Google
If you have pages that are for internal use only, a temporary test page, or a campaign page that should only be reached through a direct link from your newsletter, you can exclude them:
Disallow: /internal-page/ Disallow: /temp/ Disallow: /newsletter-only/
A path without a trailing slash matches everything that starts with it. So Disallow: /temp excludes /temp, /temp/test, and /temperature. Be a little careful about where you put the slash.
Filtered and sorted views
If your theme has filters or sorting that create many variations of the same category page, it can be worth keeping those variations out, so crawlers spend their time on the category itself. Whether this is relevant depends entirely on how your theme is built, so look at your own URLs first, or read more about product filtering in your online store.
A specific exception
If you want to allow access to something that sits under a blocked path, you can use Allow. A more specific rule wins over a less specific one, regardless of the order they are in:
Disallow: /internal-page/ Allow: /internal-page/guide
What you should NOT block
- Your products and categories. Being found on them is how you make a living.
- Images, CSS, and JavaScript. Google renders your pages like a real browser. If you block the design files, Google sees a broken page and judges it accordingly, especially on mobile.
- Your sitemap. Crawlers need to be able to fetch it.
The difference between robots.txt and noindex
This is the point most people trip over, so it's worth reading twice. The two sound alike, but do completely different things:
- robots.txt says: "you may not fetch this page".
- noindex says: "you may fetch the page, but you may not show it in the search results".
The important consequence: if you block a page in robots.txt, Google can't fetch it, and so Google can't see that the page has noindex either. If the page already has links from other sites, Google may still show the URL in the search results, just without a title and description. The result is an empty, ugly line in Google instead of nothing.
Rule of thumb: if you want a page out of Google, use noindex, and don't block it in robots.txt. If you just want to save crawlers from spending time on something that should never be in the search results anyway, use robots.txt.
In Shoporama, you set noindex with the Enable "noindex, follow" checkbox. It's available on products, categories, pages, landing pages, and blog posts. Read the full walkthrough in How to set noindex on a page, product, or category.
Shoporama also sets noindex by itself on the pages where it's obvious, including the cart, address, shipping, payment, the receipt page, and the search results page. All newer themes output it. If you have an older or custom-built theme, it's worth having your theme developer check that the meta tag is actually included.
robots.txt and llms.txt
On the same page in the admin is the llms.txt box. It's a different file with a different purpose: a short overview of your store and your most important pages, written for AI services like ChatGPT and Claude. Where robots.txt tells crawlers what not to fetch, llms.txt can't block anything. It only provides an overview. If you want to stop AI bots from fetching your pages, robots.txt is the one to use, but email support@shoporama.dk first. See why under the common mistakes below.
Shoporama doesn't put anything in llms.txt by itself. If the field is empty, the file doesn't exist, and that's perfectly fine. If you want to create one, read llms.txt: tell AI services what your online store is about.
The common mistakes
- Writing Disallow: /. That single slash closes the entire store to search engines. It's the most expensive typo you can make in the field. If your traffic from Google disappears over a couple of weeks, this is the first place to look.
- Blocking a page to get it out of Google. It doesn't work. Use noindex, as described above.
- Writing a User-agent line in the middle of the field. Your lines are inserted into the group that applies to all crawlers. If you start a new group in the middle of the field, Shoporama's default rules end up in the new group instead, and suddenly they no longer apply to everyone. If you need rules for a specific crawler, contact us at support@shoporama.dk first.
- Using robots.txt for security. The file is public. If you write Disallow: /secret-folder/, you have just told the whole world that the folder exists.
- Blocking design files. Without CSS and JavaScript, Google judges your page as broken.
- Forgetting to check afterward. Always open /robots.txt in the browser after you save. It takes five seconds.
- Expecting it to work in Google right away. The file changes instantly, but it can take days or weeks before Google has fetched it again and worked its way through your store.
- Uppercase and lowercase letters. The words Disallow and Allow themselves don't care about case, but the paths do. /Offers and /offers are two different things.
Demo stores and shoporama.dk addresses
If your store is still a demo store, is closed, or is on a temporary address under shoporama.dk, Shoporama automatically serves a robots.txt that says:
User-agent: * Disallow: / # Powered by Shoporama
This is intentional, and it works in your favor. A store under construction shouldn't be in Google, and your temporary address shouldn't compete with your real domain later on. In that situation, the Extra rules field has no effect, because the whole file is replaced.
As soon as the store is live on your own domain, the file automatically switches to the normal version with the sitemap and default rules. If you haven't moved to your own domain yet, read Connect your own domain to your store. If you're moving an existing store to Shoporama, Keep your Google rankings when migrating your store and The complete guide to redirects are the two articles to read first.
For the technically minded
- The file is generated on every request and served as text/plain in UTF-8. Shoporama doesn't store it, but sends it with a cache time of one hour, so a browser or an intermediary may show the previous version for up to an hour.
- The order in the finished file is: User-agent: *, then your content from the Extra rules field, then the Sitemap line, and finally Shoporama's default rules.
- The default rule Disallow: /basket$ uses the dollar sign to mean "ends here". So it only matches the cart page itself, not addresses that start with the same text. The same applies to /sysreco$ and /recommendations$, so a page with the address /recommendations-for-you can still be crawled.
- If a crawler visits /systr, /sysreco, or /recommendations anyway, they respond with status code 405 (method not allowed), an empty response, and a noindex signal. They are only for the store's own script. If you already have a page or a redirect on /sysreco or /recommendations, it works as before.
- If you sell in several countries, each with its own path (for example /se/), each country gets its own Sitemap line, and the default rules are repeated under the country's path. Your own Allow and Disallow lines from Extra rules are repeated too. Countries that aren't enabled yet are blocked completely, and there is a line for /country-switch, which the language selector uses to switch country. Read more in Sell in multiple countries, languages, and currencies.
- Google and Bing resolve conflicts between Allow and Disallow by letting the most specific rule win, not by the order in the file. When rules are the same length, Allow wins.
- The sitemap is at /sitemap.xml and is automatically split into several files with an index if the store has a very large number of URLs.
- The field can also be read and written through Shoporama's API along with the other store settings, if you want to manage it from your own tools.
Frequently asked questions
I have never touched my robots.txt. Is my store set up wrong?
No. Shoporama creates the file for you, and the default content fits the vast majority of online stores. The Extra rules field is for cases where you have something very specific you want to keep out of the search engines. If in doubt, leave it empty.
How do I know whether my change has taken effect?
Open https://dinshop.dk/robots.txt in the browser and refresh the page. Shoporama builds the file from scratch on every visit, so the change is there right away. Your browser may keep the file for up to an hour, though. If you still see the old version, try a hard refresh or a private window.
Google still shows a page I have blocked. What do I do?
That's the classic trap. Blocking a page in robots.txt stops Google from fetching it, not from showing the URL. Remove the block in the Extra rules field, set noindex on the page instead, and wait until Google has fetched it again. Then it disappears on its own.
Can I create rules that only apply to one specific search engine?
You shouldn't do that in the field, because your lines are added to the group that applies to all crawlers. If you write your own User-agent line, Shoporama's default rules move into the new group. If you have a specific need, email support@shoporama.dk, and we'll find a solution together.
I have several online stores. Do I need to do the same in all of them?
Yes, the field belongs to the individual store, so you need to go into each store separately. If you create a new store by copying an existing one, the content of the field is carried over to the copy, so there you're covered.
Can I keep order and receipt pages from ending up in Google?
They are already kept out by default. The cart, address, shipping, payment, and receipt pages have a Disallow line, and Shoporama also sets noindex on them. The order pages have a Disallow line. You don't need to do anything. Just remember that robots.txt is never data protection in itself. The file is public, and anyone can read it.
Can I ruin my traffic from Google with this field?
Yes, if you write Disallow: /. That asks all search engines to stay away from the entire store, and over a few weeks your visibility drops. So always look at /robots.txt in the browser after you save, and check that there isn't a lone slash.
Our store is for business customers only and requires login. Should we block everything?
No, that's rarely necessary. Crawlers can't fetch content behind a login anyway, and blocking the entire store also means that the front page and any public information pages disappear from Google. If you want the store removed from the search results completely, contact us, so we can find the right solution for your setup.
Can I remove the lines Shoporama adds itself?
No, they are always added. They cover the cart, checkout, order pages, file downloads, and product reviews, which are pages that should never be in a search result, plus the addresses that the statistics and recommendations use in the background. If you have a very specific reason to get one of them crawled, email support@shoporama.dk.
Search Console shows /systr, /sysreco, or /recommendations as an error. Do I need to do anything?
No, and you shouldn't create redirects for them. These are addresses the store uses in the background, and they are already in your robots.txt. If Google visited them before the lines were added, they may appear as errors in the report for a few more weeks. After that, they typically show as blocked by robots.txt, which is perfectly fine.
Do I need to add my sitemap in the field myself?
No. Shoporama automatically inserts a Sitemap line that points to /sitemap.xml on your own domain, and the sitemap is kept up to date for you. If you add a line yourself, you just get the same sitemap listed twice.
If you're unsure about a specific rule, or you'd like us to look over your robots.txt, you're very welcome to email support@shoporama.dk.
Related articles
Filtering in your online store
How to set up product filtering in your Shoporama store, so customers can filter products on category pages by profile attributes, product labels,...
How to set noindex on a page, product, or category
How to set noindex on products, categories, pages, landing pages, and blog posts in Shoporama, so they are not shown in Google's search results.
Connect your own domain to your store
How to move your Shoporama store to your own custom domain, with DNS setup, a free SSL certificate, and domain validation.
Keep your Google rankings when migrating your store
Best practices for keeping your Google rankings when you migrate your online store to Shoporama from another platform.
The complete guide to redirects in Shoporama
A complete guide to redirects in Shoporama. Learn when and how to create 301 redirects, find missing ones in the 404 log, and avoid losing your...
What do the 404 errors in the admin mean?
What the 404 errors in the Shoporama admin mean, why they happen, and how to fix them with 301 redirects in under a minute.
Related features
XML sitemap
An XML sitemap lists every page in your online store for search engines. Learn what it contains, why it matters for SEO, and how it works in...
SEO (Search Engine Optimization)
SEO brings your online store free traffic from Google. Learn about technical SEO, on-page optimization, link building, and Shoporama's built-in SEO...
SEO in Shoporama – get found on Google
Built-in SEO in Shoporama: fast loading, control over titles and meta descriptions, dynamic tags, automatic 301 redirects, XML sitemap, noindex,...