What is robots.txt?

robots.txt is a text file at the root of a website that tells crawlers, including search engines and AI crawlers, which paths they may fetch.

Free · no signup · passive checks only · results in under a minute

robots.txt is a plain text file served at /robots.txt that tells automated crawlers which parts of a site they may fetch. Rules are grouped by User-agent.

User-agent: *
Disallow: /admin/

User-agent: GPTBot
Disallow: /

Sitemap: https://example.com/sitemap.xml

Things to know

  • robots.txt controls crawling, not indexing. Use noindex to keep a page out of results.
  • When several rules match, the most specific (longest) rule wins; for equal length, Allow wins.
  • It is a request, not access control. Never use it to hide sensitive URLs, because the file itself is public.
  • Each AI company uses its own user agent, so blocking one does not block the others.