Guide
robots.txt for e-commerce: what to allow and what to block
A single wrong line in robots.txt can hide your shop from Google or from AI assistants like ChatGPT. Here is how to get it right.
Scan your site freeAllow your public pages
Product, category, blog and landing pages should always be crawlable. Start with User-agent: * and Allow: /.
Block pages with no search value
Cart, checkout, account and internal search result pages waste crawl budget.
- Disallow: /cart
- Disallow: /checkout
- Disallow: /account
- Disallow: /*?q=
Decide on AI crawlers
Training crawlers and search crawlers have different purposes. GPTBot is not the same as OAI-SearchBot, and Google-Extended does not control inclusion in Google Search. Review each provider's current documentation and your content policy. Allowing a crawler does not guarantee that an assistant will recommend your shop.
Add your sitemap and llms.txt
Add a Sitemap: line pointing to your public sitemap.xml. An llms.txt can optionally summarize your shop for tools that choose to read it; it is not a Google indexing requirement and does not guarantee AI visibility. Robots.txt is not an access-control mechanism for private information.
Frequently asked questions
Does robots.txt remove pages from Google?
No. It stops crawling, not indexing. Use a noindex tag to keep a page out of results.
Can Trendifyn check my robots.txt?
Yes — the Site Audit flags problems and gives you an improved version to copy.
See what Trendifyn finds on your site
Free scan · one opportunity unlocked · no card needed
Scan your site free