A robots.txt generator writes rules that tell crawlers which paths they may request. It controls crawling, not indexing. A page blocked in robots.txt can still appear in Google if other pages link to it, usually without a description. To remove a page from the index, allow crawling and use a noindex tag instead.
The rules in plain words
| Line | Meaning |
|---|---|
| User-agent: * | The rules below apply to every crawler that has no group of its own. |
| Disallow: /cart | Do not request URLs that start with /cart. |
| Allow: /wp-admin/admin-ajax.php | An exception inside a blocked folder. |
| * | Matches any sequence of characters, for example /*?sort= for sorted listings. |
| Sitemap: | The full address of your XML sitemap. |
AI crawlers
Some AI bots collect pages for training, some fetch pages to answer a live search, and some visit only when a user asks about a page. Blocking the search ones can keep you out of AI answers, which matters for AI search optimization (GEO). Google-Extended controls use in Gemini training and does not affect Google Search rankings.
Mistakes in this file are behind many crawl problems we fix. Our guide to robots.txt and sitemap errors covers the common cases, and the SEO problem solutions hub lists related issues. Platform notes are on our WordPress SEO and Shopify SEO pages.