Shopify automatically generates a robots.txt file for your store, but you can customize it using the robots.txt.liquid template. Here is an example of a typical robots.txt file for Shopify:
Example robots.txt for Shopify
User-agent: *
Disallow: /admin/
Disallow: /cart
Disallow: /checkout
Disallow: /orders
Disallow: /account
Disallow: /collections/*sort_by*
Disallow: /collections/*filter*
Allow: /sitemap.xml
Sitemap: https://yourshopifystore.com/sitemap.xml
Download robots.txt for Shopify – open the file & make sure to replace your own website sitemap’s URL.
(make sure to rename the file to robots.txt before uploading it to your shopify website)



Thank you very helpful