Is your website blocking ChatGPT? How to check your robots.txt

By Matthew Ryan, Octavian Ideas · October 12, 2026 · 8 min read

The short answer

Your website blocks ChatGPT if your robots.txt file, at yourdomain.com/robots.txt, says “Disallow” for OAI-SearchBot, the crawler that finds pages for ChatGPT search. Blocking GPTBot is different: it only keeps your pages out of OpenAI's model training. To show up in AI answers, let the search crawlers in (OAI-SearchBot, Claude-SearchBot, PerplexityBot) and decide on the training crawlers separately.

Few small business sites block AI on purpose. It can come from a security plugin, a template default or a rule someone added years ago. Either way, when an assistant's search crawler is blocked, that assistant stops showing your pages in its answers. Checking takes a minute, and the fix is a few lines of text.

What is robots.txt?

robots.txt is a small plain text file at the top level of your website, so it loads at yourdomain.com/robots.txt. Crawlers, the programs that search engines and AI companies send out to read websites, look at it before reading anything else. It tells them which parts of the site they may read.

The file is made of groups. Each group starts with a User-agent line naming a crawler, followed by Allow or Disallow lines saying what it may or may not read. “User-agent: *” means any crawler not named elsewhere in the file. “Disallow: /” means the whole site. A crawler follows only the group that names it most closely, so one named group can turn away a single bot while every other bot gets in.

robots.txt controls reading, not listing: Google says a blocked page can still appear in its results if other sites link to it. It's also a set of instructions, not a lock. The AI companies publish their crawlers' names so you can write rules for them.

Source: Google Search Central: Robots.txt introduction and guide (2025)

Which AI crawlers matter, and what does each one do?

Each AI company runs several crawlers with different jobs, and blocking one doesn't block the others. There are three kinds.

Search crawlers decide whether you appear in answers

  • OAI-SearchBot (OpenAI) finds pages for ChatGPT search. OpenAI says sites that block it won't be shown in ChatGPT search answers.
  • Claude-SearchBot (Anthropic) indexes pages for Claude's search results. Anthropic says blocking it may reduce your visibility there.
  • PerplexityBot (Perplexity) surfaces and links websites in Perplexity's results. Perplexity recommends allowing it if you want to appear.

On-demand fetchers open a page when someone asks

  • ChatGPT-User opens a page when a ChatGPT user's request needs it. OpenAI says it isn't used to decide what appears in search, and that robots.txt rules may not apply to it because a person started the request.
  • Claude-User does the same job for Claude. Anthropic says blocking it stops Claude retrieving your pages to answer a user's question.
  • Perplexity-User is Perplexity's version. Perplexity says it generally ignores robots.txt, for the same reason as ChatGPT-User.

Training crawlers collect text to train future models

  • GPTBot (OpenAI). Blocking it tells OpenAI not to use your content to train its models.
  • ClaudeBot (Anthropic). Blocking it keeps your future pages out of Anthropic's training data.
  • Google-Extended (Google). Not a separate crawler but a name Google reads to decide whether your pages can be used for its Gemini models. Google Search crawling is handled by Googlebot, not by this rule.

The point to remember: blocking a training crawler doesn't take you out of AI answers, and blocking a search crawler does. If someone blocked GPTBot to keep your content out of training, ChatGPT can still find you through OAI-SearchBot. The vendors explain their own crawlers here: OpenAI, Anthropic and Perplexity.

Googlebot matters here too. Google's main crawler feeds Google Search, including AI Overviews, and Gemini uses it as well, so a rule that blocks Googlebot hides you from all of them.

Sources: OpenAI: Overview of OpenAI crawlers, Vercel + MERJ: The rise of the AI crawler (2024)

How do you check your robots.txt in a minute?

  1. Open a browser and go to yourdomain.com/robots.txt, with your own domain in place of yourdomain.com.
  2. If you get a “page not found” message, you don't have a robots.txt. That's fine: with no file, crawlers treat the whole site as open.
  3. If the file loads, look for User-agent lines naming OAI-SearchBot, Claude-SearchBot, PerplexityBot, ChatGPT-User or Claude-User. A Disallow: / under any of them turns that crawler away from your whole site.
  4. Check the “User-agent: *” group. Disallow: / there blocks every crawler you haven't named, including the AI search crawlers and Googlebot.
  5. If the address shows a server error or won't load at all, tell whoever runs your website today.

That last step matters. Google says that when robots.txt returns a server error, it stops crawling the whole site for 12 hours, then works from the last good copy of the file for up to 30 days.

Source: Google Search Central: Robots.txt introduction and guide (2025)

Paste your site to see which AI crawlers your robots.txt lets in or turns away, with the lines to fix it.

Check my robots.txt

What should your robots.txt say?

Pick one of two setups. Both let the AI search crawlers and on-demand fetchers read your site; they differ only on training. Keep any lines you already have that hide private areas, such as /wp-admin/ on WordPress, under the “User-agent: *” group.

Allow AI search, block AI training
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: *
Allow: /

OAI-SearchBot, Claude-SearchBot, PerplexityBot and the on-demand fetchers aren't named, so they follow the “User-agent: *” group and can read the whole site.

Allow everything

BeforeUser-agent: GPTBot Disallow: / User-agent: OAI-SearchBot Disallow: / User-agent: * Allow: /

After
User-agent: *
Allow: /

Delete every named group that says Disallow: /. With no named groups left, every crawler follows the one rule for everyone.

Some ready-made “block AI” lists name the search crawlers alongside the trainers. Check every name against the lists above before you paste one in.

Where do you edit robots.txt on your website platform?

  • WordPress: with Yoast SEO, go to Yoast SEO → Tools → File editor. With Rank Math, go to Rank Math → General Settings → Edit robots.txt. Without either plugin, your host's file manager can create a robots.txt file in the site's main folder.
  • Wix: in your dashboard, open SEO Tools and choose the robots.txt editor.
  • Squarespace: go to Settings → Crawlers. Squarespace writes the file for you, so you get switches rather than lines. After changing one, open your robots.txt to see which crawlers it now blocks.
  • Custom-built sites: robots.txt is a plain text file in the site's root folder. Your developer can change it, or you can upload a new one through your hosting file manager. Name it exactly robots.txt, in lower case.

After any change, reload yourdomain.com/robots.txt to confirm the new lines are live. Each crawler picks them up the next time it reads the file.

Can something other than robots.txt block AI crawlers?

Yes. Security plugins, hosting firewalls and CDNs (services that sit in front of a website to speed it up and filter traffic) can refuse bots before they ever read robots.txt. Those blocks don't appear in the file, so a clean robots.txt doesn't prove the door is open. Look in their bot settings for anything about AI crawlers, or ask your host.

The AI companies flag this themselves. Perplexity's crawler guide asks sites behind a firewall to add an allow rule for its bots, and Anthropic's crawler page advises against blocking its bots by IP address, because that stops them reading your robots.txt.

Source: OpenAI: Overview of OpenAI crawlers

Pages that don't load

A crawler can't read a page that returns an error. Google only indexes pages that load normally, with what's called a 200 status. Error pages aren't indexed, and indexed pages that start returning errors are dropped.

Source: Google Search Central: Google Search technical requirements (2025)

Pages built only with JavaScript

Some websites send a nearly empty page and build the content in the browser with JavaScript, the code that makes pages interactive. People see everything; a crawler that doesn't run JavaScript sees very little. A 2024 study by Vercel and MERJ found that none of the major AI crawlers, including OpenAI's, Anthropic's and Perplexity's, rendered JavaScript. Google's crawler, which Gemini uses, does.

Source: Vercel + MERJ: The rise of the AI crawler (2024)

Google's own advice is to put content in the page's HTML from the start, through server-side or static rendering, because not all bots run JavaScript. To test a page, open it in Chrome, right-click and choose View page source. If your services, service area and phone number are in that text, crawlers can read them. If it's mostly code with little readable text, ask your developer about server-side rendering.

Source: Google Search Central: Understand JavaScript SEO basics (2026)

Should you block AI crawlers from training on your content?

That's a business decision more than a technical one. Blocking GPTBot, ClaudeBot and Google-Extended tells those companies not to use your pages to train future models. It doesn't block their search crawlers, so you can still be cited in answers. Anthropic describes the block as keeping your future material out of training.

Source: OpenAI: Overview of OpenAI crawlers

What you give up is harder to pin down. When an assistant answers from memory rather than searching, it draws on what it learned in training. Whether leaving your pages out changes how often a business gets mentioned hasn't been measured in any study we rely on.

For most service businesses, the website is public marketing: what you do, where you work, how to reach you. You may be happy for any AI to read that. If you publish guides or pricing you'd rather not hand to model makers, blocking training is a reasonable choice. Just don't block the search crawlers by accident while you do it.

Your AI crawler check

  • yourdomain.com/robots.txt loads or shows “not found”, never a server error
  • No Disallow: / under OAI-SearchBot, Claude-SearchBot or PerplexityBot
  • No Disallow: / under “User-agent: *” unless you meant to hide the whole site
  • Googlebot isn't blocked
  • GPTBot, ClaudeBot and Google-Extended set the way you chose, on purpose
  • Security plugin, firewall and CDN bot settings checked for AI blocks
  • Your services, area and phone number appear in each service page's source
  • robots.txt checked again after any redesign, plugin change or platform move

If all of that is clean and AI assistants still don't mention you, the cause lies elsewhere. Why ChatGPT doesn't mention your business covers the other reasons.

Run the free check to see what Google and AI assistants can read on your site, which businesses Perplexity names for a customer's question, and the fixes that matter most.

Check my site free

Questions

Does blocking GPTBot stop ChatGPT from recommending my business?
No. GPTBot only collects text for training OpenAI's models. ChatGPT search relies on OAI-SearchBot, and OpenAI says sites that block that crawler won't be shown in ChatGPT search answers. Check both names in your robots.txt.
My site has no robots.txt file. Is that a problem?
No. When the file is missing, crawlers treat the whole site as open to read. You only need one if you want to keep crawlers out of something, such as a login area or AI training.
Can I block AI crawlers from just part of my site?
Yes. Under the crawler's User-agent line, add a Disallow line with the folder instead of a slash on its own, for example “Disallow: /private/”. That crawler skips the folder and can still read the rest.
Will robots.txt keep a page out of Google?
Not reliably. Google says a page blocked in robots.txt can still show up in results if other sites link to it. Blocking it also stops Google seeing a noindex tag, so to keep a page out of Google, let it be crawled and add noindex instead.
If I allow every AI crawler, will ChatGPT recommend me?
Not on its own. Allowing the crawlers means assistants can read your site; it doesn't decide whether they choose you. How to get ChatGPT to recommend your business covers what else is involved.
How often should I check my robots.txt?
Check it after any redesign, platform move, new security plugin or change of web developer, since those are the moments a stray rule can slip in. Otherwise a look every few months is plenty.

Sources

What this guide relies on, with how strong the evidence is. Every topic is in the evidence library.

See what Google and AI see on your site

Free, no account. The check reads your pages, asks an AI assistant about you and gives you the fix for each problem.

Check my site