What robots.txt does, and what it does not
robots.txt is a plain text file at the root of your site, for example https://www.example.com/robots.txt. Crawlers read it before they visit your pages, and it tells each of them which paths it may visit. The rules follow an internet standard (RFC 9309), so every serious crawler reads them the same way.
- It controls crawling, not indexing. A blocked page can still appear in results as a bare link if other sites point to it. To keep a page out of results, let it be crawled and add a noindex tag.
- It is public. Anyone can read it, so never use it to hide private folders. Protect those with a login.
- It is a request. Reputable crawlers obey it. Scrapers that ignore it must be stopped at the server or firewall.
- Each host has its own file.
shop.example.com does not follow the rules of www.example.com.
The three kinds of AI crawler
Most AI companies now run separate crawlers for separate jobs, so you can make a different choice for each one. Your Crawler Access report lists every crawler by its exact name, its owner and its job.
| Kind | What it does | If you block it | Usual advice |
| Search crawlers | Index pages so a search engine or AI assistant can find, quote and link to them. | Your pages stop appearing in that service's answers and results. | Allow |
| Training crawlers | Collect pages that may be used to train future AI models. | Your new pages are not collected for training. Search visibility is not affected. | Your choice |
| User fetchers | Open a page at the moment a person asks an assistant to read it. | The assistant may fail to open your page when someone asks for it. | Usually allow |
The balanced choice for most publishers: allow search crawlers and user fetchers so people can find and open your pages, and decide about training crawlers based on how you feel about your work being used to train AI models.
How crawlers read your rules
robots.txt is short, but it is read with exact rules. Knowing them prevents most accidents.
- Groups. Rules sit in groups that start with one or more
User-agent: lines. A crawler follows the one group that names it, or the * group if none does.
- A named group replaces the general one. If you add a group for a crawler by name, that crawler ignores everything in the
* group.
- The longest match wins. When several rules match an address, the most specific (longest) one decides. On a tie, Allow wins with the major crawlers.
- Paths are case-sensitive.
/Blog/ and /blog/ are different paths.
- Two wildcards exist.
* matches any characters and $ marks the end of an address.
- Errors change everything. A missing file (404) means "no limits". A server error (5xx) or a timeout makes careful crawlers treat the whole site as blocked until the file loads again.
- Size matters. Major crawlers read only the first 500 KB. Rules after that point do nothing.
The override trap in practice:
# General rules for every crawler
User-agent: *
Disallow: /admin/
Disallow: /cart/
# A named group for one crawler...
User-agent: ExampleBot
Disallow: /drafts/
# ...so ExampleBot now ignores the two rules above and may crawl
# /admin/ and /cart/. Repeat them here if they should still apply.
Three ready-made policies
Replace the example address with your own. For named crawlers, copy the exact names from your Crawler Access report, one group per crawler.
1. Open to everyone
User-agent: *
Allow: /
Sitemap: https://www.example.com/sitemap.xml
2. Visible in search and AI answers, but no AI training
# Search crawlers, AI search crawlers and user fetchers stay welcome
User-agent: *
Allow: /
Disallow: /admin/
# One group per training crawler (exact names in your report)
User-agent: TrainingCrawlerName1
Disallow: /
User-agent: TrainingCrawlerName2
Disallow: /
Sitemap: https://www.example.com/sitemap.xml
3. Keep a private area out of every crawler's path
User-agent: *
Disallow: /members/
Disallow: /checkout/
Allow: /
Sitemap: https://www.example.com/sitemap.xml
Do not block a page you want removed from results. If a crawler cannot visit the page, it never sees the noindex tag. Allow crawling, add noindex, and wait until the page drops out.
Mistakes that cost sites their visibility
- A
Disallow: / line copied from a staging site to the live site.
- A named group added for one crawler that silently drops all the general rules for it.
- Blocking CSS and JavaScript folders, so crawlers cannot render the page properly.
- Using robots.txt to "hide" private files, which actually advertises where they are.
- A file saved in the wrong text format, or rule names misspelt, so lines are skipped.
- A security service that answers crawlers with an error or a challenge page, making the file unreadable.
- Rules for
Crawl-delay or Noindex that the major crawlers ignore.
Beyond robots.txt: firewalls, sitemaps and llms.txt
Firewalls and bot protection
Many hosts and content delivery networks now offer one-click "block AI bots" or bot-fight settings, and some switch them on by default. They act before robots.txt is even read. If your report says a crawler is allowed but your pages still never appear, check these settings and your server logs for 403 or 429 answers to crawlers.
Sitemaps
A sitemap lists the pages you want found. Link it from robots.txt with a Sitemap: line, keep only live pages with status 200 in it, and update it when you publish. It is the fastest way to tell crawlers about new and updated pages.
llms.txt
llms.txt is a proposed, optional file that summarises your site for AI tools. Some tools may read it; mainstream search engines do not use it for ranking. It does no harm, but it is no substitute for crawlable pages and good content. Your report shows whether you have one and whether it is valid.
Your crawler access checklist
- robots.txt loads at the root of each host with status 200 (or 404 if you want no limits).
- Search crawlers and AI search crawlers are allowed on the pages you want found.
- Training crawlers are allowed or blocked on purpose, by exact name.
- No named group has accidentally dropped your general rules.
- CSS and JavaScript files are not blocked.
- A Sitemap line points to a sitemap of live pages.
- Firewall and bot-protection settings do not block the crawlers you allow.
- You re-check after every theme, plugin, host or CDN change.