What is Robots.txt?
Robots.txt is a plain-text file at the root of a website that tells crawlers which paths they may or may not request. It uses User-agent and Allow/Disallow rules, can address specific bots such as Googlebot or GPTBot, and often points to the sitemap.
What Robots.txt means
For years robots.txt was only about Google. Now it also decides whether AI crawlers — GPTBot, ClaudeBot, PerplexityBot — can read your content. Block them and your pages cannot be retrieved or cited by those assistants.
The file is a gatekeeper, not a hiding place: it asks crawlers to stay out, but it does not protect private data. Anything truly private belongs behind authentication, not behind a Disallow line.
How it works
Before crawling, a well-behaved bot requests /robots.txt and follows the rules for its user agent. The file controls crawling, not indexing: a blocked URL can still appear in results if other sites link to it.
AI crawlers
Many AI companies publish named crawlers, such as GPTBot and OAI-SearchBot (OpenAI), ClaudeBot (Anthropic) and PerplexityBot. Sites can allow or block each one separately.
Common mistakes
A leftover "Disallow: /" from a staging site, blocking CSS and JavaScript files needed to render pages, and using robots.txt to hide pages that should carry a noindex tag instead.
Why it matters
One line in robots.txt decides whether your company exists in AI answers. If you want to be cited by ChatGPT, Perplexity or Gemini, their crawlers must be allowed in.
Examples
- Allow all"User-agent: *" followed by "Allow: /" and a Sitemap line.
- Block one path"Disallow: /admin" to keep crawlers out of a private area.
ROBOTS.TXT Q&A
What does robots.txt do?
It tells web crawlers which parts of your site they may access. Search engines and AI assistants use it to decide what they can read and index.
Should I allow AI crawlers like GPTBot?
If you want your content cited in AI answers, yes. Blocking GPTBot, ClaudeBot or PerplexityBot means those assistants cannot retrieve your pages, so they will cite others instead.
Related terms
Reviewed by Jordi Marca, Managing Director · Last updated:
Related service: GEO area · Frontier Marketing
