Glossary: robots.txt

What is robots.txt?

robots.txt is a plain text file at the root of a site, such as example.com/robots.txt, that tells crawlers which paths they may or may not fetch. Rules are grouped by user agent. It is a request that well behaved bots follow, not a lock, and blocking a URL from crawling does not by itself remove it from search results.

Check your AI visibility

See in seconds whether ChatGPT, Claude, Perplexity and Google's AI crawlers can read your site.

  • GPTBot
  • OAI-SearchBot
  • ClaudeBot
  • PerplexityBot
  • Google-Extended
  • Bingbot
  • Which AI crawlers can read your site, right here
  • Schema, llms.txt and search basics in the full report
  • Your top fixes, ready to paste, after a no-cost signup

How robots.txt rules are read

The Robots Exclusion Protocol has been used since the 1990s and was formalized as an internet standard, RFC 9309, in 2022. Every major search engine and most AI companies say their crawlers respect it.

Small mistakes in this file have large effects. One broad Disallow line can hide a whole site from search, and one missing group can let a bot you meant to block crawl everything.

  • Groups and user agents

    Each group starts with one or more User-agent lines followed by Allow and Disallow rules. A crawler uses only the most specific group that matches its name. If it has its own group, the asterisk group no longer applies to it.

  • Allow and Disallow

    Rules match URL paths. When an Allow and a Disallow both match, Google uses the longer, more specific rule. An empty Disallow line means everything is allowed for that group.

  • Crawling is not indexing

    Disallow stops a compliant bot fetching a page. The URL can still appear in results if other sites link to it. To keep a page out of the index, allow crawling and use a noindex meta tag or header.

Step by step

How to check and change robots.txt safely

  1. 01Read the live fileOpen yourdomain.com/robots.txt in a browser and read every line, looking for broad Disallow rules you did not intend.
  2. 02List the bots you care aboutWrite down the search and AI crawlers you want, such as Googlebot, Bingbot, OAI-SearchBot and PerplexityBot, and the ones you want to block.
  3. 03Repeat rules inside named groupsIf a bot has its own group, copy into it any Disallow lines from the general group that should still apply to it.
  4. 04Add your sitemapInclude a Sitemap line with the full URL of your XML sitemap so every crawler can find your important pages.
  5. 05Test before and afterUse the robots.txt report in Search Console after changes and check server logs to confirm allowed bots still arrive.

Checklist

Checklist

  • File served at the root and returns a 200 status
  • No accidental site wide Disallow
  • Separate groups for bots with different rules
  • Shared Disallow lines repeated inside named groups
  • Sitemap line with a full URL
  • Private content protected by login, not robots.txt
  • Search Console robots.txt report checked after edits

Find robots.txt rules that block AI search

Run the audit on your domain to see what your robots.txt allows for search and AI crawlers, then sign up at no cost for the fix.

Test my robots.txt

Questions

Does Disallow remove a page from Google?

No. It stops Googlebot crawling the page, but the URL can still be indexed from links. Use noindex on a crawlable page to keep it out of results.

Do all bots obey robots.txt?

Major search engines and most AI companies say their crawlers do. Some user triggered fetchers may not, and bad bots ignore it, so protect private content with authentication.

Why is a bot still blocked after I allowed it?

Often a CDN, firewall or security plugin blocks it before robots.txt is read. Check those settings and your server logs.

Not ready to sign up?

Leave your work email and we will send practical notes on getting found in AI answers, one at a time. Add your site if you want them to fit it. Unsubscribe any time.

Last updated 2026-11-21