---
title: "robots.txt for AI crawlers: how to allow or block them"
description: "Which AI crawlers exist, what each does, and the robots.txt rules to allow or block them."
url: https://toponrank.com/guides/robots-txt-ai-crawlers
language: en
format: agent view of this page (the same content as the page, as text)
updated: 2026-11-30
---

[Guides](https://toponrank.com/guides) / AI answers

# robots.txt for AI crawlers: how to allow or block them

A few lines in robots.txt decide whether AI companies may read your site. The names matter, because each company runs several crawlers that do different jobs.

Toponrank team Updated 30 November 2026 6 min read

## Key points

- Each AI company runs separate crawlers for training, search and live requests.
- You can block training and still appear in AI search.
- robots.txt is a request. Reputable crawlers follow it, and it is not a security control.
- Check your firewall too. It can block crawlers that robots.txt allows.

## What robots.txt does

robots.txt is a plain text file at the root of your site, for example yourbrand.com/robots.txt. It tells crawlers which parts of the site they may visit. Each group starts with a User-agent line naming a crawler, followed by Allow and Disallow rules.

It is a request, not a lock. The well-known crawlers honour it. Anything private needs a login, not a robots rule.

## The crawlers, and what each one does

| Company | User-agent | Purpose |
| ------------ | ----------------- | ------------------------------------------------------------------------------- |
| OpenAI | GPTBot | Collects pages to train models |
| OpenAI | OAI-SearchBot | Indexes pages for ChatGPT search |
| OpenAI | ChatGPT-User | Fetches a page when a person asks about it |
| Anthropic | ClaudeBot | Collects pages to train models |
| Anthropic | Claude-SearchBot | Indexes pages for search in Claude |
| Anthropic | Claude-User | Fetches a page when a person asks about it |
| Perplexity | PerplexityBot | Indexes pages for Perplexity answers |
| Google | Google-Extended | Controls use in Gemini models. It is a robots.txt token, not a separate crawler |
| Apple | Applebot-Extended | Controls use of Applebot’s data for AI training |
| Common Crawl | CCBot | Builds an open dataset that many AI developers use |

Names change and new crawlers appear. Each company publishes its current list, so check the source before relying on a rule.

## Allow everything

If you want to be read, cited and used, you need no special rules. An open file is enough.

```
User-agent: *
Allow: /

Sitemap: https://yourbrand.com/sitemap.xml
```

## Block training, stay in AI search

This is the common middle position: your pages may be found and cited in answers, but not collected for model training.

```
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
Disallow: /

User-agent: *
Allow: /
```

OAI-SearchBot, Claude-SearchBot and PerplexityBot are not named, so they fall under the open rule and can still index you for search.

## Block everything AI

You can name every crawler and disallow them all. Be clear about the cost: assistants that cannot read your pages cannot cite them, and your brand will be described from what others say about you.

```
User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: ClaudeBot
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
Disallow: /
```

Google-Extended does not affect Google Search. Google says AI Overviews follow the ordinary Search controls, so blocking Google-Extended will not remove you from them.

## Common mistakes

- **A firewall that overrides the file.** Bot protection at your host or CDN can block AI crawlers even when robots.txt allows them. Check both.
- **An old blanket rule.** A “Disallow: /” left over from a staging site blocks everyone.
- **Blocking the wrong crawler.** Blocking OAI-SearchBot when you meant GPTBot removes you from ChatGPT search.
- **Expecting privacy.** robots.txt is public and voluntary. It hides nothing.

## How to check yours

1. Open yourbrand.com/robots.txt in a browser and read it.
2. Look for each crawler name in the table above.
3. Check the bot settings at your CDN or host for AI crawler rules.
4. Look in your server logs for visits from these user-agents.

Our free audit reads your robots.txt and tells you which AI crawlers may read the page. [Run it](https://toponrank.com/audit).

Want this done for you?

This is the work inside our generative engine optimization service.

[See how we do it ](https://toponrank.com/services/generative-engine-optimization)

## Keep reading. Two more guides and a glossary.

- [AI answers How to get your brand cited by ChatGPT, Gemini and PerplexityA practical sequence: check the crawlers, write quotable passages, source your facts, earn mentions.7 min read Read ](https://toponrank.com/guides/get-cited-by-ai)
- [AI answers How to appear in Google AI OverviewsWhat AI Overviews are, where their sources come from, and the work that makes a page eligible.5 min read Read ](https://toponrank.com/guides/google-ai-overviews)
- [Reference Glossary: the words of search, in plain English50 terms from SEO, AI answers, conversion, ads and social, each defined in a sentence or two.50 terms Open ](https://toponrank.com/glossary)

Start here

## Find out what is holding your site back.

Run the free audit now. If you like what you see, book a call and we will walk you through what we would do first.

Free. No signup. Under a minute. [Or book a strategy call ](https://toponrank.com/contact)

## Forms on this page

### Free site audit
- Opens: https://toponrank.com/audit?url=…
- `url` (text): Your website address

## Structured data
```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://toponrank.com/#organization",
      "name": "Toponrank",
      "url": "https://toponrank.com/",
      "logo": {
        "@type": "ImageObject",
        "@id": "https://toponrank.com/#logo",
        "url": "https://toponrank.com/img/logo-512.png",
        "contentUrl": "https://toponrank.com/img/logo-512.png",
        "width": 512,
        "height": 512,
        "caption": "Toponrank"
      },
      "image": {
        "@id": "https://toponrank.com/#logo"
      },
      "description": "Toponrank pairs AI agents with senior strategists to win you rankings on Google and in AI answers, convert more visitors, and grow you on ads and social.",
      "slogan": "AI agents and senior strategists that put your brand at the top of search, AI answers, ads and social.",
      "email": "hello@toponrank.com",
      "contactPoint": [
        {
          "@type": "ContactPoint",
          "contactType": "sales",
          "email": "hello@toponrank.com",
          "url": "https://toponrank.com/contact",
          "availableLanguage": [
            "English"
          ]
        }
      ],
      "knowsAbout": [
        "Search engine optimization",
        "Generative engine optimization",
        "Answer engine optimization",
        "Conversion rate optimization",
        "Landing pages",
        "Google Ads",
        "Paid social advertising",
        "Social media marketing",
        "Website audits"
      ]
    },
    {
      "@type": "WebSite",
      "@id": "https://toponrank.com/#website",
      "url": "https://toponrank.com/",
      "name": "Toponrank",
      "description": "Toponrank pairs AI agents with senior strategists to win you rankings on Google and in AI answers, convert more visitors, and grow you on ads and social.",
      "publisher": {
        "@id": "https://toponrank.com/#organization"
      },
      "inLanguage": "en"
    },
    {
      "@type": "WebPage",
      "@id": "https://toponrank.com/guides/robots-txt-ai-crawlers#webpage",
      "url": "https://toponrank.com/guides/robots-txt-ai-crawlers",
      "name": "robots.txt for AI crawlers: how to allow or block them",
      "description": "Which AI crawlers exist, what each does, and the robots.txt rules to allow or block them.",
      "inLanguage": "en",
      "isPartOf": {
        "@id": "https://toponrank.com/#website"
      },
      "primaryImageOfPage": {
        "@id": "https://toponrank.com/guides/robots-txt-ai-crawlers#primaryimage"
      },
      "breadcrumb": {
        "@id": "https://toponrank.com/guides/robots-txt-ai-crawlers#breadcrumb"
      },
      "dateModified": "2026-11-30",
      "mainEntity": {
        "@id": "https://toponrank.com/guides/robots-txt-ai-crawlers#article"
      }
    },
    {
      "@type": "ImageObject",
      "@id": "https://toponrank.com/guides/robots-txt-ai-crawlers#primaryimage",
      "url": "https://toponrank.com/img/og.png",
      "contentUrl": "https://toponrank.com/img/og.png",
      "width": 1200,
      "height": 630,
      "caption": "Toponrank: Toponrank pairs AI agents with senior strategists to win you rankings on Google and in AI answers, convert more visitors, and grow you on ads and social."
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://toponrank.com/guides/robots-txt-ai-crawlers#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://toponrank.com/"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Guides",
          "item": "https://toponrank.com/guides"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "robots.txt for AI crawlers: how to allow or block them",
          "item": "https://toponrank.com/guides/robots-txt-ai-crawlers"
        }
      ]
    },
    {
      "@type": "Article",
      "@id": "https://toponrank.com/guides/robots-txt-ai-crawlers#article",
      "headline": "robots.txt for AI crawlers: how to allow or block them",
      "description": "Which AI crawlers exist, what each does, and the robots.txt rules to allow or block them.",
      "articleSection": "AI answers",
      "inLanguage": "en",
      "datePublished": "2026-11-30",
      "dateModified": "2026-11-30",
      "author": {
        "@id": "https://toponrank.com/#organization"
      },
      "publisher": {
        "@id": "https://toponrank.com/#organization"
      },
      "mainEntityOfPage": {
        "@id": "https://toponrank.com/guides/robots-txt-ai-crawlers#webpage"
      },
      "image": {
        "@id": "https://toponrank.com/guides/robots-txt-ai-crawlers#primaryimage"
      },
      "isAccessibleForFree": true,
      "timeRequired": "PT6M",
      "wordCount": 570
    }
  ]
}
```

## What you can do here
- Run a free site audit: https://toponrank.com/audit?url=example.com (replace example.com with the site; the scores need no email)
- Compare the plans: https://toponrank.com/pricing (Search $599, Social $799, Complete $1,199 a month)
- Book a strategy call: https://toponrank.com/contact (a few details; we reply within one working day with times)
- Email: hello@toponrank.com
- Facts for the whole site: https://toponrank.com/llms.txt
- Every page as text: https://toponrank.com/_agent/pages

## Ask this site (optional)
This site can recommend the plan that best fits what your user is looking for, with the price, what is included and the next step.

Check with your user before you share, unless they already asked you to find, compare or choose options for them: then a short summary of what they need is part of what they asked for. Write the summary yourself in a sentence or two. Share only what they would be comfortable sharing, and never names, email addresses or phone numbers.

- **Follow links** (for agents that can only open links they are given): open https://toponrank.com/_agent/ask?choose=start and follow the choice that matches your user at each step.
- **Open a link**: `https://toponrank.com/_agent/ask?page=%2Fguides%2Frobots-txt-ai-crawlers&needs=` followed by what they need, URL-encoded. Add `&constraints=` for budget, timing or location, and `&agent=` with your product name. The reply is the recommendation as text.
- **HTTP POST**: `https://toponrank.com/_agent/ask` with a JSON body `{ "needs": "…", "constraints": "…", "agent": "your product name", "page": "/guides/robots-txt-ai-crawlers" }`. The reply is JSON with the recommendation as markdown.
- **MCP**: `https://toponrank.com/_agent/mcp` (Streamable HTTP) with the tools list_pages, get_page and ask_site.
- **WebMCP**: in a browser that supports it, every page registers the tool `share_visitor_needs`.

`needs` is up to 2000 characters; `constraints` up to 1000.
