← HomeHow to Get Cited in AI
Answer

How should robots.txt handle AI crawlers?

By Jason Burns, Founder of HurcuLeads · Stuff Doer at Adolicious · Updated

Handle AI crawlers in robots.txt by explicitly listing each user agent — GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, PerplexityBot, Perplexity-User, Google-Extended — and setting Allow or Disallow per bot to match your policy on training, search citation, and live-fetch use.

Each AI provider publishes the exact user-agent strings and their purposes. OpenAI's bots documentation distinguishes GPTBot (training), OAI-SearchBot (indexing for ChatGPT Search), and ChatGPT-User (live user-triggered fetch). Anthropic's crawler article covers ClaudeBot and related agents. Perplexity's bots guide covers PerplexityBot and Perplexity-User. Google's publisher-controls announcement introduces Google-Extended, which controls training use without affecting Googlebot indexing.

The syntax is standard RFC 9309. A publisher wanting to allow citation-oriented crawlers but block training might write per-agent User-agent: blocks with a mix of Allow: / and Disallow: / lines.

Two nuances. First, robots.txt is advisory — well-behaved crawlers respect it, malicious scrapers do not. Second, allowing the search-oriented crawler while disallowing the training crawler is legitimate under each provider's terms and gives publishers a clean way to be citable without contributing to model training.

Also list your Sitemap: directive — the same file is read by many AI crawlers for discovery.

Related terms

Sources

Related questions people ask next

  • Why doesn't my business appear in ChatGPT?

    Your business doesn't appear in ChatGPT because ChatGPT's answer layer only cites pages its crawlers can fetch, parse, and confidently attribute — and most sites fail on at least one of those three.

  • How do I get cited by Perplexity?

    Get cited by Perplexity by allowing its crawler (PerplexityBot) in robots.txt, publishing server-rendered pages with a clear direct answer as the first sentence under each heading, and making the underlying URL rank on Bing — because Perplexity retrieves against public web indexes and its own crawl.

  • Does server-side rendering matter for AI crawlers?

    Server-side rendering matters for AI crawlers because most of them fetch a page's raw HTML once and do not execute JavaScript — a client-rendered page returns an empty shell on that fetch, so the answer text is invisible to the crawler even when the site works perfectly for a browser.

  • What is IndexNow and why does it matter for ChatGPT?

    IndexNow is an open protocol jointly announced by Microsoft Bing and Yandex that lets a site push new or changed URLs to participating search engines in near real time — and it matters for ChatGPT because ChatGPT Search's live web results are anchored on Bing's index.