AI crawlers and robots.txt

How do I tell if my robots.txt is blocking AI tools?

The short answer

Open yoursite.com/robots.txt and look for groups that name AI crawlers such as OAI-SearchBot, GPTBot, PerplexityBot or ClaudeBot, and for a catch-all group covering every user agent with Disallow: /. Then check your server logs, because a firewall or CDN can block AI crawlers even when robots.txt allows them.

Read the file itself

Your robots.txt always lives at the root of your domain, so type your domain followed by /robots.txt into a browser. It is a plain text file made of groups. Each group starts with one or more `User-agent` lines naming a crawler, followed by `Allow` and `Disallow` lines listing paths.

Look for three things:

  • Groups naming AI crawlers, such as OAI-SearchBot, GPTBot, ChatGPT-User, PerplexityBot, ClaudeBot, Claude-SearchBot, Google-Extended or Bingbot
  • A `Disallow: /` line under any of those groups, which blocks that crawler from the whole site
  • A catch-all `User-agent: *` group with `Disallow: /`, which blocks every crawler that does not have its own group

Understand how crawlers read the groups

A crawler follows the most specific group that names it and ignores the rest. If OAI-SearchBot has its own group, it follows that group, even if the catch-all group says something different. If it has no group of its own, it falls back to `User-agent: *`.

That creates two common traps. A site with `User-agent: *` and `Disallow: /` blocks every AI crawler unless each has its own allowing group, which is common on staging sites that went live without the file being changed. And a copied template that blocks a long list of AI bots may include search crawlers you actually want, such as OAI-SearchBot or PerplexityBot. The difference between those bots is explained in GPTBot compared with OAI-SearchBot.

Check what your platform writes for you

On many website platforms, robots.txt is generated automatically, and settings elsewhere change it. SEO plugins, privacy settings and "discourage search engines" options can all add rules you did not write. If what you see in the browser does not match what you expected, the platform settings are the place to look.

Confirm in your logs

Robots.txt only tells you what you asked crawlers to do. It does not show whether they can reach your site. A firewall, bot protection feature or CDN can block AI crawlers at the network level, and nothing about that appears in robots.txt. Your server or CDN logs will show whether OAI-SearchBot, PerplexityBot and the others are getting normal responses or being refused.

How to see which AI crawlers visit your website explains how to read those logs, and whether your firewall or CDN can block AI crawlers covers the blocks robots.txt cannot show you.

Related questions

More questions about aI crawlers and robots.txt

Next questionCan my firewall or CDN block AI crawlers without me knowing?

Find out whether ChatGPT and other AI tools recommend your business

Get an AI visibility audit showing whether ChatGPT and other AI tools recommend your business when people ask for what you offer, which competitors they name instead, and how you compare.

Request my AI visibility audit