How to audit your site for AI crawlers (GPTBot, ClaudeBot, PerplexityBot)

SEODevil team · · 8 min read

To audit your site for AI crawlers, check four layers in order: what robots.txt says to each bot, whether your firewall or CDN lets the bot through, whether your content is in the HTML the bot receives, and what your server log shows the bots actually fetched. A site can pass the first check and fail the second, so you need all four. Here is how to run each one.

Know which AI bots you are auditing

AI companies run several crawlers each, and they do different jobs. Treating them as one group is the most common mistake, because blocking the wrong one removes you from AI answers without protecting anything.

  • Search bots build the index an assistant searches when it answers a question: OAI-SearchBot (ChatGPT search), Claude-SearchBot (Claude), PerplexityBot (Perplexity).
  • User-triggered fetchers load a page because a person asked the assistant about it or pasted the link: ChatGPT-User, Claude-User, Perplexity-User.
  • Training bots collect text for future models: GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl), Bytespider (ByteDance).
  • Opt-out tokens are not crawlers at all. Google-Extended and Applebot-Extended are names you use in robots.txt to tell Google and Apple not to use your pages for AI training. The crawling itself is still done by Googlebot and Applebot.

If you want to be cited in AI answers, the search bots and user-triggered fetchers must be able to read your pages. Whether you allow the training bots is a separate decision about how your content is used. The AI bots directory lists each one with its user agent and purpose.

Step 1: Check robots.txt for each bot by name

Open https://yoursite.com/robots.txt and look for two things: groups that name an AI bot, and the User-agent: * group that applies to every bot without its own group.

The rule that catches people out: a bot follows only the most specific group that matches it. If you have a User-agent: GPTBot group, GPTBot ignores everything under User-agent: *, including your Disallow: /admin/ lines. Repeat any shared rules inside the bot's own group.

This robots.txt allows AI search and blocks training:

# AI search and user-triggered fetchers: allowed
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
Allow: /

# Training: blocked
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
User-agent: Google-Extended
User-agent: Applebot-Extended
Disallow: /

User-agent: *
Disallow: /admin/

Things to look for while you read yours:

  • A blanket Disallow: / under User-agent: * left over from staging. It blocks every AI bot that has no group of its own.
  • Rules added by a plugin or CDN. Some security plugins and Cloudflare's managed robots.txt append AI bot rules you never wrote.
  • Old bot names. anthropic-ai and Claude-Web are no longer used by Anthropic; rules for them do nothing today.
  • A blocked search bot next to an allowed training bot, which is usually the opposite of what the site owner wanted.

The free AI crawler checker reads your robots.txt and reports the result for 14 AI bots in one run. For the rest of the file, use the robots.txt checker.

Step 2: Test whether your firewall or CDN blocks the bots

robots.txt is only a request. Your server, firewall or CDN makes the real decision, and it can refuse a bot that robots.txt allows. Cloudflare's "Block AI bots" setting is the usual cause, followed by WAF rules and bot-protection plugins that challenge anything that isn't a browser.

Request a page using a bot's user agent and look at the status code:

# As GPTBot
curl -s -o /dev/null -w "%{http_code}\n" \
  -A "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)" \
  https://yoursite.com/

# As a normal browser, for comparison
curl -s -o /dev/null -w "%{http_code}\n" \
  -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0 Safari/537.36" \
  https://yoursite.com/

If the browser request returns 200 and the bot request returns 403, 429 or a challenge page, something is blocking the bot by name. Repeat with ClaudeBot, PerplexityBot and OAI-SearchBot in the user agent.

This test has one limit. A firewall that verifies bots by IP address may block your test because you are not coming from the vendor's network, while letting the real bot through. A block here means "check your firewall settings", not proof that the real bot is refused. Step 4 gives you the proof.

Step 3: Make sure your content is in the raw HTML

Most AI crawlers do not run JavaScript. They read the HTML your server sends and nothing else. A single-page app that renders its content in the browser looks like an empty page to them, even when access is wide open.

Check what a bot receives:

curl -s https://yoursite.com/pricing | grep -c "a sentence that should be on the page"

A result of 0 means that sentence is added by JavaScript. You can also use "View page source" in the browser (not the inspector, which shows the page after scripts ran) and search for your main heading and a paragraph of body text.

Check these pages first, because they are the ones assistants quote when someone asks about you: the homepage, pricing, product or service pages, comparison pages and documentation. If the content is missing, the fix is server-side rendering or prerendering for those routes.

Step 4: Read your server log to see what the bots really did

The first three steps tell you what should happen. The access log tells you what did. It answers the questions nothing else can: do the bots visit at all, which pages do they fetch, and what status codes do they get?

On an Apache or Nginx combined log, this counts responses per status code for the main AI bots:

grep -iE "GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|Claude-SearchBot|PerplexityBot" access.log \
  | awk '{print $9}' | sort | uniq -c | sort -rn

How to read the result:

  • Mostly 200: the bots are getting your pages.
  • Many 403 or 429: your server, firewall or rate limiter is turning them away. Go back to Step 2.
  • Many 404: bots are following dead links, often old URLs from before a redesign. Add redirects.
  • Many 301: bots spend their requests on redirects. Update internal links and your sitemap to the final URLs.
  • No lines at all: either the bots are blocked before the request reaches your server (a CDN block never appears in the origin log), or your site has not been discovered. Check the CDN's own log or analytics.

One caveat: a user agent is just a text string, and scrapers borrow well-known bot names. OpenAI, Anthropic, Perplexity and others publish the IP ranges their crawlers use, and a request that claims to be GPTBot from outside OpenAI's ranges is not GPTBot.

The free AI bot log analyzer does this for you. It parses the log in your browser (the file is never uploaded), groups requests by bot, shows status codes and most-fetched pages, and marks requests that use a bot's name from outside its published IP ranges as fake.

Step 5: Fix what you found, then re-test

  • Search bot disallowed in robots.txt: remove the rule or add an explicit Allow: / group for it, then reload robots.txt in a browser to confirm the live file changed.
  • Blocked at the CDN or firewall: turn off the blanket AI-bot block and, if you still want training bots out, block those by name instead. In Cloudflare, look under the bot settings for the AI bots option.
  • Content missing from the HTML: server-render or prerender the pages that matter.
  • 404s and redirect chains in the log: redirect old URLs and fix the links pointing at them. The redirect checker traces a chain hop by hop.
  • Optionally, publish an /llms.txt file that summarizes your site and links to your key pages. It is an emerging convention, not a requirement, and it does not replace any of the steps above.

Then run Steps 1 and 2 again straight away, and check the log again after a week or two. Crawlers cache robots.txt for a while, so a change does not show up in the log immediately.

How often to repeat the audit

Run it after anything that touches the edge of your site: a CDN or hosting change, a new security plugin, a redesign or a framework migration. Those are the changes that silently block bots or move content into JavaScript.

Between those, the robots.txt part is worth watching continuously, because a single bad deploy can change it. SEODevil monitoring alerts you when robots.txt changes or starts blocking crawlers, and a full SEODevil audit includes the same AI readiness checks as the free tool: robots.txt rules per AI bot, firewall probes, llms.txt and whether your content exists before JavaScript runs.

See what your site needs

Run a free audit and get a prioritized task list. No card needed.

Start free audit

Frequently asked questions

How do I check if GPTBot is blocked on my site?

Check two places. In robots.txt, look for a GPTBot group with Disallow rules, or a blanket Disallow under User-agent: * with no GPTBot group. Then request a page with GPTBot's user agent using curl: a 403, 429 or challenge page while a browser gets 200 means your firewall or CDN is blocking it.

Does blocking GPTBot remove my site from ChatGPT answers?

No. GPTBot collects training data. ChatGPT's search answers use OAI-SearchBot, and pages a user asks about are fetched by ChatGPT-User. You can block GPTBot and still be cited, as long as the other two can reach your pages.

Is robots.txt enough to keep AI crawlers out?

Only for bots that choose to follow it. The major vendors say their crawlers do, but robots.txt is a request, not a barrier, and user-triggered fetchers may not apply it the way crawlers do. To enforce a block, use a firewall or CDN rule, ideally one that verifies the bot by its published IP ranges.

How can I tell whether a request really came from an AI bot?

Compare the request's IP address with the ranges the vendor publishes for that crawler. The user agent alone proves nothing, because any client can send any name. Bots with no published list, such as Bytespider, can't be verified this way.

Why do AI bots never show up in my server log?

Usually because they are stopped before reaching your server: a CDN or WAF block is answered at the edge and never appears in the origin log. Check your CDN's logs or bot analytics. It can also mean the site is new or has few links, so the bots have not found it yet.

More from the blog