Technical for WooCommerce stores

Should cart and checkout pages on a WooCommerce store be blocked from AI crawlers?

The short answer

There is little value in any crawler reading cart, checkout or account pages, since they contain nothing useful to an AI answer. Recent versions of WooCommerce already mark these pages noindex, and many stores also block add-to-cart and similar parameter URLs in robots.txt to save crawl effort, but OpenAI says ChatGPT-User may not follow robots.txt, so treat it as housekeeping rather than security.

Why these pages don't belong in AI answers

Cart, checkout and my account pages are different for every visitor and contain no product information worth citing. A crawler that reads them wastes time it could spend on your product and category pages. They can also generate large numbers of URLs, especially add-to-cart links with parameters, which crawlers may follow from product and category pages.

What WooCommerce does already

Recent versions of WooCommerce add a noindex robots tag to the cart, checkout and account pages, telling search engines not to show them in results. Check this on your store by viewing the source of those pages and looking for a robots meta tag with noindex. Some SEO plugins also set it.

What WooCommerce doesn't do by default is stop crawlers requesting add-to-cart URLs, such as links containing ?add-to-cart=. On some stores these are crawled heavily.

A sensible setup

Many stores add rules like these to robots.txt, adjusting the paths to match their own page addresses:

User-agent: * Disallow: /cart/ Disallow: /checkout/ Disallow: /my-account/ Disallow: /*add-to-cart=*

A rule under "User-agent: *" applies to every crawler that follows robots.txt, including AI crawlers, unless a crawler has its own group, in which case it follows that group instead. If you have separate groups for AI crawlers, repeat the rules there.

Two cautions:

  • Robots.txt and noindex work against each other. A crawler blocked by robots.txt can't see a noindex tag. That is fine for cart and checkout pages, which shouldn't be linked anywhere important, but don't block pages you want removed from results that are already indexed.
  • Don't block too much. A broad rule can catch product or category URLs by accident. Test rules before publishing them.

What robots.txt won't do

Robots.txt is a request. Well-known crawlers say they follow it, but it isn't a security measure. OpenAI says ChatGPT-User may not follow robots.txt, because its visits are started by users. Pages with customer information are protected by logins and sessions, not robots.txt.

The bigger AI visibility question for a store is the reverse: make sure your product and category pages aren't blocked. See how to allow or block AI crawlers on WordPress, what the ChatGPT-User agent is and whether AI crawlers obey robots.txt.

Related questions

More questions from WooCommerce stores about AI crawlers and technical AI SEO

AI crawlers and robots.txt - questions every business asks

Next questionIs WooCommerce a good platform for AI search visibility?

Find out whether ChatGPT and other AI tools recommend your WooCommerce store

Get an AI visibility audit showing whether ChatGPT and other AI tools recommend your WooCommerce store when people ask for what you offer, which competitors they name instead, and how you compare.

Request my AI visibility audit