To allow AI crawlers in robots.txt, add an explicit Allow: / rule for each AI user agent you want to permit. A user agent is the name a crawler uses to identify itself. The list includes GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, PerplexityBot and Google-Extended. A permissive User-agent: * block usually covers them already. Note that robots.txt is advisory. If a firewall or security plugin is refusing these crawlers, the file cannot override it, and the fix belongs at the edge instead. The edge is the layer in front of your site, such as your CDN or firewall.

The rest of this page covers the file itself, what each agent actually does, and the three ways sites block these crawlers by accident.

Why this matters more than it looks

Answer engines reach your site through two doors. One is the training snapshot, which is months or years old and changes slowly. The other is live retrieval, where an assistant fetches your page in the moment somebody asks a question.

Live retrieval is the fast door. It does not care how old your domain is or how many backlinks you have. It cares whether the fetch succeeds. If a crawler gets blocked, rate limited or served a challenge page, you are simply not a candidate, no matter how good the content behind that URL is.

This is the single most common technical reason a business is absent from AI answers, and it is usually not a decision anyone made on purpose.

The robots.txt, copy and paste

Four lines. On a normally configured site this is the whole job, and it is what this site serves.

robots.txt
User-agent: *
Allow: /

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

Save that as robots.txt in your site root, so it lives at yourdomain.com/robots.txt, and change the sitemap line to your own URL. For most sites, that is the whole implementation.

User-agent: * already covers every crawler named in this post. Adding a group for each agent does not grant any access the wildcard was withholding, because it was not withholding any. Before you use the longer version below, understand why it exists. The rule that makes it useful also makes it risky if you get it wrong. A crawler with its own group reads only that group and ignores User-agent: * entirely.

What this file cannot do

robots.txt is a set of voluntary instructions that well-behaved crawlers choose to follow. It is not an access control, and it cannot override anything. Google sets out what the file is for in Introduction to robots.txt.

If your CDN (the network that delivers your site), WAF (web application firewall), rate limiter or security plugin is blocking a crawler, robots.txt will not change that. Your file says yes and your edge says no. The edge wins every time. Listing an agent explicitly does not protect you from that. Anyone who tells you otherwise has confused two different layers.

Access is set up at the edge and checked by looking at real responses. Request a page while sending each crawler's user agent, and read the status code that comes back. A 403, a 429 or a challenge page tells you something between robots.txt and the crawler is refusing. That is where the fix belongs.

The longer file below is still worth having if you want to treat agents differently, for example by allowing a search crawler while disallowing a training crawler. A crawler with its own group reads only that group. It gives you control over each agent. It does not protect you from anything upstream.

robots.txt, explicit version
# Allow AI crawlers

User-agent: *
Allow: /

# OpenAI
User-agent: GPTBot
Allow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

# Anthropic
User-agent: ClaudeBot
Allow: /

User-agent: Claude-User
Allow: /

User-agent: Claude-SearchBot
Allow: /

# Perplexity
User-agent: PerplexityBot
Allow: /

User-agent: Perplexity-User
Allow: /

# Google
User-agent: Googlebot
Allow: /

User-agent: Google-Extended
Allow: /

# Microsoft
User-agent: bingbot
Allow: /

# Apple
User-agent: Applebot
Allow: /

User-agent: Applebot-Extended
Allow: /

# Meta
User-agent: meta-externalagent
Allow: /

# Common Crawl
User-agent: CCBot
Allow: /

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

Same location, same sitemap line to change. If you deploy this version, request your robots.txt again afterwards. Read what comes back, not what you committed. This version exists because something upstream may be editing the file, and that something does not stop just because you rewrote it.

What each user agent actually does

Allowing everything is the right default for most businesses. But you should know what you are agreeing to, because these agents do very different jobs.

GPTBot collects training data for future OpenAI models. Allowing it means your content may inform how a model describes your category in a year's time. Blocking it does not affect whether ChatGPT can cite you today.

OAI-SearchBot builds the index behind ChatGPT's search feature. This is a citation crawler. Block it and your pages stop being candidates for the source list users see.

ChatGPT-User fetches pages live when a user's prompt triggers browsing, or when someone clicks a citation link. OpenAI has also extended it to cover Custom GPT requests and GPT Actions. For most businesses this is the single most important agent to allow.

ClaudeBot, Claude-User and Claude-SearchBot are Anthropic's equivalents. They split along roughly the same lines: training, fetches started by a user, and search indexing.

PerplexityBot indexes for Perplexity's answers. Perplexity-User handles live fetches during a session.

Google-Extended is not a crawler and has no user agent of its own. It is a control token. It governs whether content that Googlebot already fetched may be used for training and grounding in Gemini Apps and the Vertex AI API. Grounding means using web pages to back up an answer.

Many people misunderstand this, so it is worth stating plainly. Disallowing Google-Extended does not remove you from AI Overviews or AI Mode. Those are features inside Google Search. They draw on the standard Search index through Googlebot. To appear in them, a page only needs to be indexed and eligible to appear in Search with a snippet. There is no separate AI index and no separate submission step.

The controls that do affect AI features are the ordinary preview controls: nosnippet, data-nosnippet, max-snippet and noindex. Google has also begun rolling out a setting in Search Console, under Settings then Search generative AI. It excludes a site from AI Overviews and AI Mode without removing it from normal Search. It is reaching site owners gradually. Google documents all of this in AI features and your website.

The mistake to avoid in the other direction is worse. Blocking Googlebot to "stop AI" removes you from Google Search entirely, along with everything built on it.

Applebot-Extended works the same way for Apple's models.

CCBot is Common Crawl, which feeds a large number of downstream training corpora. Its influence is indirect but broad.

One detail worth knowing: OpenAI's documentation notes that if you allow both GPTBot and OAI-SearchBot, it may use the result of a single crawl for both purposes. It does not fetch your pages twice. This simply saves both sides some bandwidth.

The current canonical list lives in OpenAI's crawler documentation and Google's crawler overview. Check both when you make changes, because names get added.

The three ways sites block AI crawlers by accident

Getting robots.txt right is necessary but not enough. Three things override it silently.

1. Your firewall or security plugin

This is by far the most common cause. WAF rulesets, bot protection modules and security plugins often ship with AI crawlers blocked or rate limited by default, and they do not announce it. Your robots.txt says yes and your edge says no.

The symptom is a 403, a 429 Too Many Requests, or a challenge page returned to a crawler that robots.txt explicitly allows. From the crawler's side, a 429 looks like a site that does not want the traffic. The crawler then backs off.

If you use Cloudflare, check the AI crawler controls in the dashboard instead of assuming. Most managed hosts have an equivalent setting buried somewhere in security. Cloudflare splits AI bots into three behavior categories, not one on or off switch. This is covered in is Cloudflare blocking ChatGPT.

2. A staging rule that shipped to production

Disallow: / on a staging site is correct. Disallow: / copied into production is a site that vanishes. It is a common mistake, and because robots.txt rarely gets checked again after launch, it can sit there for months.

Open yourdomain.com/robots.txt in a browser right now. If you see Disallow: / under User-agent: *, that is your entire problem and nothing else on this page matters until you fix it.

3. Content that only exists after JavaScript runs

Robots.txt permits the fetch. It does not guarantee the fetcher sees anything useful. If your key content only appears after JavaScript runs in the browser (client side rendering), a crawler that does not run JavaScript receives an empty shell.

Test it by disabling JavaScript in your browser and reloading a service page. Whatever remains visible is roughly what a non-rendering fetch gets.

Verifying the crawler is real

Any script can send a header saying it is GPTBot. Spoofing is common, and some of it is malicious scraping hiding behind a name you have chosen to trust.

Verification takes two checks. The user agent string has to match, and the source IP has to fall inside the published range for that agent. OpenAI publishes machine readable IP lists for each of its three bots. Anthropic and Perplexity publish equivalents.

A request that passes the name check and fails the IP check is an impostor. It is safe to block. Blocking it has no effect on your real visibility in ChatGPT, because the real crawler still comes from the published ranges.

Here is what my own robots.txt actually contains, and what the six main AI crawlers get back from it, tested on October 17, 2026:

robots.txt, theaeoguy.pro
User-agent: *
Allow: /

Sitemap: https://theaeoguy.pro/sitemap.xml
curl test, theaeoguy.pro
curl -I -A "GPTBot" https://theaeoguy.pro/          → HTTP/1.1 200 OK
curl -I -A "OAI-SearchBot" https://theaeoguy.pro/   → HTTP/1.1 200 OK
curl -I -A "ChatGPT-User" https://theaeoguy.pro/    → HTTP/1.1 200 OK
curl -I -A "ClaudeBot" https://theaeoguy.pro/       → HTTP/1.1 200 OK
curl -I -A "Claude-SearchBot" https://theaeoguy.pro/ → HTTP/1.1 200 OK
curl -I -A "PerplexityBot" https://theaeoguy.pro/   → HTTP/1.1 200 OK

What to do after you publish the file

Give it about a day. Robots.txt changes take roughly twenty four hours to spread through search systems. They take longer through the crawlers that visit less often.

Then check your logs, and read them carefully, because this is where people reach the wrong conclusion.

Absent visits are inconclusive. "Not visited" and "visited and denied" are different states with different causes. A crawler that has not found you yet, or has not made you a priority, leaves exactly the same empty log as one being blocked. New sites and low authority domains really do get crawled rarely. No crawler visits on a schedule you can predict.

What logs do prove is the positive case. Hits from an agent confirm that access works for that agent. Requests that arrive and get a 403 or a 429 confirm that something is refusing them. Both are evidence. An empty log is not.

Suppose robots.txt is permissive, your edge returns 200 to a test request, and your logs are still empty after several weeks. Then you have a discovery problem, not an access problem. Submit a sitemap, make sure the pages are internally linked, and give it time. On this site, a stale hand written sitemap once left five published posts out entirely. It looked like a crawler problem until the sitemap itself turned out to be the gap.

Access is a starting line, not a finish. Once the crawlers can reach you, the question becomes whether your pages state their facts clearly enough to be worth quoting. That is a content problem, not a technical one. There is more on that in the notes on AEO and GEO.

About the author

I'm Osama, the person behind The AEO Guy. I help businesses in the US, the Gulf and Jordan get named by ChatGPT, Perplexity, Gemini and Google AI Overviews, and I test what I recommend on real sites, starting with my own.

The audit checks whether AI can currently reach your site. The audit is Regular price $49 now $0, free for a limited time.

Claim my free audit