Guide

AI crawlers, robots.txt and llms.txt

AI companies visit websites with several crawlers: some train models, some build a search index for AI answers, and some fetch a page because a user asked. Blocking the wrong one can keep you out of AI answers entirely. This guide lists the main crawlers, gives robots.txt rules you can copy and explains what llms.txt is for.

By the Optiviso team · Last reviewed · How we write our guides

A robots.txt file with rules for AI crawlers, next to an example site readiness audit.

Who crawls your site

  • Search and answer crawlers index pages so assistants can find and cite them: OAI-SearchBot (OpenAI), Claude-SearchBot (Anthropic), PerplexityBot (Perplexity) and Bingbot, which also feeds Microsoft’s assistant.
  • User-triggered fetchers open a page when someone asks an assistant about it: ChatGPT-User, Claude-User and Perplexity-User.
  • Training crawlers collect pages to train models: GPTBot, ClaudeBot and CCBot (Common Crawl, used by many AI companies). Google-Extended and Applebot-Extended are not separate crawlers but robots.txt tokens that control whether Google and Apple may use pages they crawl for AI models. Google Search itself, including its AI features, uses Googlebot.

robots.txt rules you can copy

To appear in AI answers, allow the search and user-triggered crawlers. Training is a separate business decision: allow it if you want models to learn about you, disallow it if you don’t. A starting point:

# AI search and user-triggered fetches: allowed
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
Allow: /

# Model training: your choice (Allow or Disallow)
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
Allow: /

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

Also check your CDN or firewall: many have a “block AI bots” switch that overrides robots.txt and blocks search crawlers too.

Make the text readable without JavaScript

Many AI crawlers read the HTML your server sends and don’t run JavaScript. If your prices, services or answers only appear after scripts run, the crawler sees an empty page. Use server-side rendering or static pages for the content that matters, and test it: open the page with JavaScript turned off, or fetch it with curl, and check that the text is there.

What llms.txt is, and what it isn’t

/llms.txt is a proposed convention from 2024: a short Markdown file at the root of your site that says what you do and links your key pages, written for AI tools. It is not a standard, no assistant promises to use it, and it doesn’t replace robots.txt. It takes ten minutes, so many sites add one:

# Lumen Dental Studio

> Family dental clinic in Austin, Texas. Open Monday to Saturday.

## Key pages
- [Services and prices](https://example.com/services)
- [Children's dentistry](https://example.com/kids)
- [Contact and opening hours](https://example.com/contact)

Structured data and sitemaps

Help crawlers understand and find your pages: add Organization or LocalBusiness JSON-LD with your name, address and contact details, FAQPage for questions you answer on the page, and a sitemap with accurate lastmod dates, listed in robots.txt.

Check your setup

Optiviso’s site audit runs 16 checks, among them AI crawler access, JavaScript-free text, structured data, sitemap, llms.txt and how recently the site changed. The free check includes it, and the methodology lists every check and its weight.

Find out what AI says about your business.

Run the free check now, or create an account to keep tracking your questions.

Get Started Free

Questions and answers

Should I block AI training crawlers?
It’s your choice. Blocking training crawlers keeps your pages out of future training data but doesn’t stop AI search, as long as the search and user-triggered crawlers are allowed. The trade-off is that model memory may know less about you.
If I block GPTBot, will ChatGPT stop citing my site?
Not on its own. OpenAI uses GPTBot for training and OAI-SearchBot for search results. Keep OAI-SearchBot and ChatGPT-User allowed if you want to be cited in ChatGPT’s search answers.
Is llms.txt required?
No. It is a proposed, optional file. It can help AI tools that read it, but robots.txt access, readable text and good pages matter far more.
How can I see which AI crawlers visit my site?
Look at your server or CDN logs and filter by the user agents listed in this guide. Because anyone can fake a user agent, check important ones against the IP ranges the AI companies publish.