DEV Community

Tomas Kadlec
Tomas Kadlec

Posted on Originally published at tomakadlec.com

How to check if GPTBot and ClaudeBot can read your website

You check three layers: what your robots.txt says to each AI user agent, what your server and CDN really answer when a request says "GPTBot" or "ClaudeBot", and whether your content is in the HTML without JavaScript. robots.txt can say yes while the firewall says 403. The page can return 200 and still be an empty shell for a crawler that does not run scripts.

I built a free tool for this, and I ran it on my own site first. On 11 November 2026 at 14:35 it showed 12 of 13 checks passed. The one miss: no schema.org data. I added JSON-LD to every page in all five languages, and at 14:46 the same check showed 13 of 13. Eleven minutes. Most fixes are that small once you know what is missing.

Below is how to do the same checks by hand with curl.

1. Know which bot does what

The big AI companies run separate crawlers for training, for search, and for user requests. If you block "AI bots" with one line per bot, you often block the wrong thing.

Company Training Search User request
OpenAI GPTBot OAI-SearchBot ChatGPT-User
Anthropic ClaudeBot Claude-SearchBot Claude-User
Perplexity PerplexityBot Perplexity-User
Google Google-Extended (Gemini training) Googlebot stays your normal crawler

Two notes:

  • OpenAI and Perplexity say their user-triggered fetchers (ChatGPT-User, Perplexity-User) may not follow robots.txt, because a person asked for that page. Anthropic says all three of its bots honor robots.txt, Claude-User included.
  • The old Anthropic names anthropic-ai and Claude-Web are not on Anthropic's current help page. If your robots.txt names only those, it does nothing for ClaudeBot, Claude-SearchBot or Claude-User. Keep the old lines if you want, add the three current ones.

2. Read your robots.txt like a crawler

curl -s https://example.com/robots.txt
Enter fullscreen mode Exit fullscreen mode

First check it exists and answers 200. A missing or broken file makes crawler behaviour unpredictable.

Then check three rules people miss:

  1. robots.txt works per host. shop.example.com needs its own file. Anthropic tells site owners to repeat the rules on every subdomain.
  2. A named group replaces the * group. If you add User-agent: Claude-SearchBot, that bot ignores your User-agent: * rules. Copy your private-path disallows into the named group.
  3. Crawl-delay works for Anthropic. It is a non-standard extension, but Anthropic supports it. Crawl-delay: 1 slows the bot down without blocking it.

Here is a block that says no to training and yes to being cited:

User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Claude-SearchBot
User-agent: Claude-User
Allow: /
Disallow: /checkout/
Disallow: /account/
Enter fullscreen mode Exit fullscreen mode

Change the private paths to your own. And remember: blocking only affects the future. It does not remove content that was already collected.

Check that the sitemap is named too:

curl -s https://example.com/robots.txt | grep -i sitemap
Enter fullscreen mode Exit fullscreen mode

3. Test what the server really answers

This is the check most people skip. Some firewalls and bot protections refuse any request with "GPTBot" or "ClaudeBot" in the user agent. Your robots.txt allows the bot, your server returns 403.

Send the same request with different user agents and compare:

URL="https://example.com/"
for UA in "Mozilla/5.0" "GPTBot" "OAI-SearchBot" "ClaudeBot" "Claude-SearchBot" "PerplexityBot"; do
  code=$(curl -s -o /dev/null -w "%{http_code}" -A "$UA" "$URL")
  echo "$UA -> $code"
done
Enter fullscreen mode Exit fullscreen mode

What you want: the same code for every line, and that code is 200. What you may see:

  • 403 or 429 only for the bot names: a WAF or bot rule blocks them.
  • 301 or 302: follow it with curl -sIL -A "GPTBot" "$URL". I have seen redirect chains and 404s on pages that "work in the browser".
  • 200 but a different body size: a challenge page. Compare with -w "%{size_download}".

The real user agent strings are longer than these tokens. ClaudeBot's usually contains "ClaudeBot/1.0" and a contact e-mail at anthropic.com. Most firewall rules match on the token, so the short version is a good first test.

Honest limit: these requests come from your IP, not from the crawlers' IP addresses. A CDN that verifies crawler IPs can answer the real bot differently. My tool has the same limit, because its requests come from my server.

4. Check the CDN and WAF settings

If you are on Cloudflare, look at the settings, not only the result.

  • Cloudflare's bot reference lists ClaudeBot as "AI Crawler", Claude-SearchBot as "AI Search" and Claude-User as "AI Assistant".
  • Since 1 July 2026 every plan, Free included, can control Search, Agent and Training separately. For each one: block on all pages, block only on pages with ads, or allow.
  • Cloudflare's own texts do not fully agree on the defaults for new domains. The July changelog and a later blog post say different things. So do not guess. Open Security settings, filter by bot traffic and read what your zone has.
  • The older "Block AI bots" setting blocks verified AI crawlers plus some unverified bots that behave like them. If you turned it on years ago, check it does not also block Claude-SearchBot.

Then run the curl loop from step 3 again.

5. Check the page without JavaScript

Most AI crawlers do not run JavaScript. If your content appears only after scripts load, the crawler sees an empty shell.

Take one sentence from the main content of the page and look for it in the raw HTML:

curl -s -A "ClaudeBot" "$URL" | grep -c "one sentence from your main content"
Enter fullscreen mode Exit fullscreen mode

0 means the text is not in the HTML. You need server-side rendering or prerendering for that page.

A rough word count of the visible text:

curl -s "$URL" \
  | sed -e '/<script/,/<\/script>/d' -e '/<style/,/<\/style>/d' -e 's/<[^>]*>//g' \
  | wc -w
Enter fullscreen mode Exit fullscreen mode

If a long article gives you a few dozen words, the content is built by scripts.

6. Check the signals in the HTML

While you have the HTML, look for the basics:

HTML=$(curl -s "$URL")
echo "$HTML" | grep -io '<title>[^<]*'
echo "$HTML" | grep -io '<meta name="description"[^>]*'
echo "$HTML" | grep -o '<h1' | wc -l          # want exactly 1
echo "$HTML" | grep -io '<html[^>]*lang="[^"]*"'
echo "$HTML" | grep -Eio 'noindex|nosnippet|max-snippet:0'
echo "$HTML" | grep -c 'application/ld+json'  # structured data
Enter fullscreen mode Exit fullscreen mode
  • A forgotten noindex from staging kills the page for search and AI search alike.
  • nosnippet or max-snippet:0 limits how much AI search can quote from you.
  • Structured data (schema.org JSON-LD for Organization, Person, Product, Article, FAQPage) was my one miss.

7. Is that "ClaudeBot" in your logs real?

Anyone can put "ClaudeBot" in a user agent. Anthropic's help page links to a list of IP addresses. If a request comes from an IP on that list, it is Anthropic. Several guides name the list as claude.com/crawling/bots.json, but open it from the link on the help page to be safe.

Get the IPs that claim to be ClaudeBot:

grep "ClaudeBot" access.log | awk '{print $1}' | sort | uniq -c | sort -rn | head -20
Enter fullscreen mode Exit fullscreen mode

Compare them with the list. The verified ones follow your robots.txt. The rest are someone else, and robots.txt will not stop them. For those you need a firewall rule that blocks the name when the IP is not verified. Do not block Anthropic by IP instead of robots.txt: Anthropic warns its bots then can't read your robots.txt at all.

Checklist

  • [ ] robots.txt answers 200, on every subdomain
  • [ ] Search bots (OAI-SearchBot, Claude-SearchBot, PerplexityBot) allowed
  • [ ] Training bots (GPTBot, ClaudeBot, Google-Extended) decided on purpose
  • [ ] Named groups contain your private-path rules
  • [ ] Same status code for browser and bot user agents
  • [ ] CDN bot settings read, not guessed
  • [ ] Main text present in raw HTML
  • [ ] One H1, title, description, lang attribute
  • [ ] No stray noindex or nosnippet
  • [ ] JSON-LD present
  • [ ] Sitemap named in robots.txt
  • [ ] Bot IPs in logs verified

Run it again after every bigger site change. Plugins and CDN settings change robots and headers without telling you.

Which of these do you expect your site to fail?

If you want the 13 checks in one run, the free AI crawler check does one URL in about 20 seconds, no sign-up.

Prefer the terminal? The script for the robots.txt and user-agent part is on GitHub: kadlectomas/ai-crawler-check.

Top comments (0)