<!-- wp:heading -->
<h2>Editing robots.txt.liquid</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Search engines, such as Google, constantly crawl the internet in search of new data as a source for their search results. The&nbsp;<code>robots.txt</code>&nbsp;file tells search engine bots, known as crawlers, which pages to request to view from your online store. All Shopify stores have a default&nbsp;<code>robots.txt</code>&nbsp;file that's optimal for Search Engine Optimization (SEO).</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Your sitemap is used by search engines to place your online store in the search engine results.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>On this page</h2>
<!-- /wp:heading -->

<!-- wp:list -->
<ul><li>Overview</li><li>Edit robots.txt.liquid</li><li>Delete robots.txt.liquid customizations</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="overview">Overview</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The default&nbsp;<code>robots.txt</code>&nbsp;file works for most stores, but you can edit the file through the&nbsp;<a href="https://shopify.dev/themes/architecture/templates/robots-txt-liquid">robots.txt.liquid theme template</a>. You can make the following edits:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>allow or disallow certain URLs from being crawled</li><li>add crawl-delay rules for certain crawlers</li><li>add extra sitemap URLs</li><li>block certain crawlers</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>The&nbsp;<code>robots.txt</code>&nbsp;file is located at the root directory of your Shopify store's&nbsp;<a href="https://help.shopify.com/manual/domains/managing-domains">primary domain name</a>. For example:&nbsp;<code>johns-apparel.com/robots.txt</code>.</p>
<!-- /wp:paragraph -->

<!-- wp:quote -->
<blockquote class="wp-block-quote"><p>Caution</p><cite>This is an <a href="https://help.shopify.com/en/manual/online-store/themes/theme-support#shopify-design-policy">unsupported customization</a>. Shopify Support can't help with edits to the <code>robots.txt.liquid</code> file. If you need to edit your <code>robots.txt.liquid</code> file, then you can <a href="https://experts.shopify.com/">hire a Shopify expert</a> to edit the code for you. Incorrect use of the feature can result in loss of all traffic.</cite></blockquote>
<!-- /wp:quote -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":4} -->
<h4>Caution</h4>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><a href=""></a></p>
<!-- /wp:paragraph -->