robots.txt for AI Crawlers: What GPTBot, ClaudeBot, PerplexityBot and Google-Extended Do

A plain guide to robots.txt for AI crawlers: what each major bot is for, what blocking or allowing it does, and three safe setups you can copy.

· GEO · Global

Should you block GPTBot, ClaudeBot and PerplexityBot in robots.txt?

For most local and regional businesses that want to be found, the sensible default is not to block them. A robots.txt file is a polite request that tells crawlers which parts of your site they may fetch. If you shut out the crawlers that AI products use to read the web, you reduce the chance that those products can see your pages at all, and an assistant that cannot see you has little reason to name you.

That said, the right answer depends on what you want. Some publishers and some businesses with paid or private material choose to opt out of AI training while staying visible in search. The good news is that the main AI companies publish separate crawler names for separate jobs, so you can often make that choice with precision rather than with a blanket ban. This guide explains each crawler, what blocking or allowing it does, and how to write rules that match your intent.

What robots.txt is, and what it cannot do

Robots.txt is a plain text file that sits at the root of your domain, for example at yourbusiness.com/robots.txt. Crawlers that choose to respect it read the file before fetching pages and follow the rules written for their name. The format is simple: a line beginning “User-agent:” names a crawler, and lines beginning “Disallow:” or “Allow:” list paths that crawler should avoid or may fetch.

It is important to be clear about its limits. Robots.txt is a convention, not a lock. Well-behaved crawlers from established companies follow it, but it does nothing to stop a scraper that ignores it, and it is not a security measure. Never rely on it to hide private pages, customer data or draft content. Anything genuinely confidential belongs behind a login, not behind a polite request.

Two more limits are worth knowing. First, blocking a crawler going forward does not necessarily remove material it has already collected. Second, each host has its own file, so a rule on www.yourbusiness.com does not cover shop.yourbusiness.com or a separate booking subdomain. If your business uses several subdomains, check each one.

The AI crawlers you are likely to see, and what each is for

AI companies tend to run more than one kind of bot. Some gather content that may be used to train models, some build a search index that powers answers with links, and some fetch a single page because a person asked an assistant to read it. The publishers describe these roles in their own documentation, and the names change from time to time, so treat the list below as a starting point and confirm against each company’s current crawler page before you write rules.

  • GPTBot is OpenAI’s crawler for collecting web content that may be used to train its models; OpenAI documents separate agents for other jobs, including OAI-SearchBot for search features and ChatGPT-User for pages fetched when a person asks ChatGPT to look at something.
  • ClaudeBot is Anthropic’s crawler used to collect public web content for model development; Anthropic also documents other agents, including Claude-User for fetches made on a person’s behalf and Claude-SearchBot for search quality.
  • PerplexityBot is Perplexity’s crawler for surfacing and linking to websites in its answer engine, which Perplexity describes as separate from training foundation models; Perplexity-User is described as the agent used when a person’s question triggers a page visit.
  • Google-Extended is a robots.txt control token rather than a separate crawler: it lets site owners tell Google whether content Google has crawled may be used for Gemini model training and for grounding in some Gemini products, and Google states that it does not affect inclusion in Google Search.
  • Googlebot and Bingbot are the ordinary search crawlers; blocking either removes you from that search engine’s results, so do not confuse them with the AI-specific names above.
  • Other names you may meet include Applebot-Extended, which controls Apple’s use of crawled content for its AI features, and CCBot, the crawler for Common Crawl, whose public datasets are widely used by researchers and AI developers.

What blocking or allowing each one actually does

Think of it as three separate decisions rather than one. The first decision is about training: do you mind your public pages contributing to future model development? Blocking GPTBot and ClaudeBot is the usual way to say no. That choice is mostly philosophical for a small business, because a plumber’s service page is not likely to be missed by a model, but some owners prefer to opt out on principle or because their content is a product in itself.

The second decision is about search-style answers. If you block the search-oriented agents, such as OAI-SearchBot or PerplexityBot, you are asking those products not to index your pages for the answers they show with links. For a business whose goal is to be recommended, this is the decision that matters most, because these are the paths by which a live answer can find and cite your site. Allowing them does not guarantee a mention, but blocking them removes a route to one.

The third decision is about user-initiated fetching. When someone pastes your address into an assistant and asks “what does this company do?”, a user agent may fetch the page. Some companies say these fetches are treated differently from automated crawling and may not follow robots.txt in the same way, so check the publisher’s documentation. For most businesses, letting a customer’s assistant read your public page is exactly what you want.

Google-Extended deserves its own note. Disallowing it is a way to opt out of Gemini training and some grounding use without touching how you appear in Google Search. It will not remove you from Google’s ordinary results, and allowing it is not a ranking signal. Many site owners leave it alone; others disallow it for the same reasons they disallow GPTBot.

Three robots.txt setups, described line by line

For example, imagine three fictional businesses. A dental clinic wants to be recommended by everything, a publisher of paid training notes wants to stay in search but out of AI training, and a members-only club wants to be left alone by all AI products. Here is how each might write the file.

The dental clinic keeps things simple. The file begins with “User-agent: *” followed by “Disallow:” with nothing after it, which means everything is allowed, and then adds “Disallow: /admin/” and “Disallow: /cart/” so that utility pages stay out of the way, and ends with a line reading “Sitemap: https://yourclinic.example/sitemap.xml”. No AI-specific rules are needed, because the general group already welcomes every crawler.

The publisher starts with the same general group, then adds a separate group for each training-related name. One group reads “User-agent: GPTBot” and “Disallow: /”. Another reads “User-agent: ClaudeBot” and “Disallow: /”. A third reads “User-agent: Google-Extended” and “Disallow: /”. Search crawlers such as Googlebot and Bingbot are not named, so they continue to read the general group and the publisher stays in search results.

The members-only club adds the three groups above plus groups for PerplexityBot, OAI-SearchBot, CCBot and Applebot-Extended, each with “Disallow: /”. It also moves anything truly private behind a login, because it understands that the file is a request and not a barrier. Whichever setup you choose, write down why, so that the next person who edits the file knows the intention.

Common robots.txt mistakes with AI crawlers

Most problems come from small editing slips rather than from strategy. A single misplaced slash can shut out every crawler, including the ones that bring you customers. The mistakes below are the ones worth checking for first.

  • Leaving “Disallow: /” under “User-agent: *” after a site relaunch is the classic error, often copied across from a staging site and forgotten, and it blocks every compliant crawler from the whole domain.
  • Assuming a named group adds to the general group, when in fact most crawlers follow only the most specific group that matches their name, so a bot with its own group ignores the rules under “User-agent: *”; repeat any shared Disallow lines inside each named group.
  • Blocking CSS, JavaScript or image folders, which can stop crawlers from rendering your pages properly and understanding what is on them.
  • Using the wrong crawler name or a wrong spelling, so the rule applies to nothing; names are matched by the crawler’s product token, so copy them exactly from the publisher’s documentation.
  • Forgetting subdomains and alternate hosts, such as a separate booking site or a language subdomain, each of which needs its own file.
  • Treating robots.txt as protection for private material rather than moving that material behind authentication.
  • Blocking everything because of a general worry, then wondering why no AI assistant seems to know about the business.

A checklist before you change your robots.txt

Make changes slowly and keep a record. Because the file is public and tiny, it is easy to edit and easy to break, and a careless change can take effect within hours. Work through the list below before you save anything.

  • Open yourdomain.com/robots.txt in a browser and save a copy of the current version so that you can restore it if something goes wrong.
  • Decide in plain words whether you want to be included in AI search answers, in model training, or both, and write the decision next to the file in your notes.
  • Read the current crawler pages from OpenAI, Anthropic, Perplexity and Google so that you use the right names for today, not the names from an old blog post.
  • Check every host that serves your public content, including www, bare domain and any subdomains, and make sure the rules are consistent across them.
  • Confirm that your sitemap line is present, uses the full address, and points to a sitemap that loads without errors.
  • After saving, reload the file in your browser and check that it shows the new content, with plain text and a normal success response rather than a redirect or an error page.
  • Look at your server logs or hosting analytics a week later, if you have them, to see which crawlers actually visit; that tells you more than any guess about who is reading.

Testing and maintaining your rules over time

A robots.txt file is easy to forget. Teams change, plugins rewrite the file during updates, and a hosting migration can quietly replace it with a default. Put a short review in your calendar every quarter: open the file, read each group aloud, and ask whether it still says what you meant. Many content management systems also generate a virtual robots.txt, so the file you edit in a dashboard may not be the one the public sees. Always check the live address.

Search engines offer tools to help. Google Search Console has a robots.txt report that shows the version Google last fetched and any problems it found, which is a quick way to catch a broken file. For the AI-specific names, there is rarely a testing console, so the practical check is to read the file carefully, confirm the spelling of each product token, and watch your server logs for the visitors you expect.

How to check where you stand

Start by reading your own file as a stranger would. Visit the address, read each group, and ask whether any rule shuts out something you want. Then ask a few AI assistants about your business in different words, for example “what does this company do in Sharjah?” and “who offers this service near me?”, and note whether you are named, whether the details are right, and whether the answer cites your site.

The AI answer alone will not prove a robots.txt problem, because many things influence whether you are named. But a file that blocks the relevant crawlers, combined with an assistant that knows nothing about you, is a pattern worth fixing first. A free srchd audit reads your robots.txt, sitemap and llms.txt alongside your page content, then asks an AI provider customer-style questions and records whether you were named, so you can see the file and the answers side by side. It records evidence and does not promise a result.

Your next step

Open your robots.txt today and answer one question: is there any line that blocks a crawler you would actually like to welcome? If the answer is yes, fix it and record the date. If the answer is no, leave the file alone and spend your effort on clearer pages, because crawl access is the starting line and not the finish.

When you do want to restrict something, use separate named groups, keep a note of your reasons, and review the crawler names every few months. The rules are short, but the choices behind them are about how you want your business to be read, and that deserves a deliberate decision rather than a copied snippet.

Frequently asked questions

Does blocking GPTBot stop ChatGPT from mentioning my business?

Not necessarily. GPTBot relates to training data collection, and OpenAI documents other agents for search and user requests. An assistant may still know about you from other sources, and blocking GPTBot does not remove material already collected. If your goal is to be recommended, review which OpenAI agents you block, because blocking its search agent is a different decision with a different effect.

Will disallowing Google-Extended hurt my Google rankings?

Google states that Google-Extended does not affect your inclusion or ranking in Google Search. It is a control token for whether content may be used for Gemini model training and some grounding. Googlebot, which handles Search, is separate. So you can disallow Google-Extended and still appear in Search, though you should confirm current wording in Google’s documentation before changing anything.

Is robots.txt enough to keep AI companies away from private content?

No. Robots.txt is a request that responsible crawlers choose to follow, not an access control. It cannot stop a crawler that ignores it, and it does not delete content already collected. Anything private, such as customer records, draft pages or members-only material, should sit behind a login or be removed from the public web entirely.

Should a small local business allow AI crawlers at all?

Usually yes, if the aim is to be found. A local clinic, restaurant or trades business gains little from hiding public service pages and may lose a route to being named in AI answers. If you have paid content or strong privacy concerns, you can block training agents only. Decide deliberately and write down why.

How do I know if an AI crawler has visited my site?

Check your hosting control panel, server logs or analytics for user agent names such as GPTBot, ClaudeBot or PerplexityBot. Not every host exposes logs, and some visits come through shared infrastructure. Absence from the logs does not prove a block, and presence does not prove you will be mentioned. Treat the logs as one piece of evidence.

Run a free srchd audit