The `robots.txt.liquid` template renders the `robots.txt` file, which is hosted at the `/robots.txt` URL. The `robots.txt` file tells search engines which pages can, or can't, be crawled on a site. It contains groups of rules for doing so, and each group has three main components: - The user agent, which notes which crawler the group of rules applies to. For example, `adsbot-google`. - The rules themselves, which note specific URLs that crawlers can, or can't, access. - An optional sitemap URL. Shopify generates a `robots.txt` file by default, which works for most shops, so this template isn't included in any themes by default. > Tip: > If you want to customize the `robots.txt.liquid` template, then refer to [Customize robots.txt](/docs/storefronts/themes/seo/robots-txt) for more information. ## Location The `robots.txt.liquid` template is located in the `templates` directory of the theme: ```text └── theme ├── layout ├── templates | ... | ├── robots.txt.liquid | ... ... ``` If your theme doesn't already contain the `robots.txt.liquid` template, then you can add it with the following steps:
From your Shopify admin, go to Online Store > Themes.
Find the theme that you want to edit, and then click ... > Edit code.
From the Shopify app, tap Store.
In the Sales channels section, tap Online Store.
Tap Manage all themes.
Find the theme that you want to edit, and then tap ... > Edit code.
From the Shopify app, tap Store.
In the Sales channels section, tap Online Store.
Tap Manage all themes.
Find the theme that you want to edit, and then tap ... > Edit code.