Detecting GPTBot and ClaudeBot: A Practical Guide to Log Verification

Server access log terminal on a desk

Identify the claimed bot, then verify the request

A user-agent containing GPTBot or ClaudeBot is a claim, not proof of identity. Start with the request record, determine which system logged the client address, and check the provider's current verification guidance. Report confirmed and unverified requests separately.

This guide is about evidence in server and edge logs. A successful bot request does not establish that the page was used for training, indexed, cited in an answer, or seen by a customer. Treat those as separate questions with separate evidence.

1. Establish what your logs actually cover

Ask the hosting or operations owner which logs are available and what each field means. An origin server may not see requests served from a CDN cache or blocked at the edge. A sampled report is not a complete request history. A missing user-agent field cannot support a reliable name-based classification.

  • Record the hostname, time range, timezone, and collection layer.
  • Confirm whether records are sampled, filtered, delayed, or rotated.
  • Identify the request path, status code, timestamp, user-agent, and client-address field.
  • Document how a trusted reverse proxy forwards the original client address.
  • Keep raw logs access-controlled and remove unnecessary personal or secret query-string data from shared reports.

Do not assume an arbitrary forwarded-IP header is trustworthy. A server behind a proxy needs a configuration that distinguishes the trusted proxy's metadata from values a requester can supply. Have the infrastructure owner confirm that configuration before treating an IP comparison as authentication.

2. Keep crawler purposes separate

OpenAI's crawler documentation distinguishes GPTBot, which may collect content for model training, from OAI-SearchBot for search and ChatGPT-User for certain user-triggered actions. It publishes associated IP-range references. A site can make different choices for search and training access.

Anthropic's bot documentation distinguishes ClaudeBot, Claude-SearchBot, and Claude-User and links its published source-IP information. Check that current reference rather than assuming older statements about unavailable verification data still apply.

Keep a small classification table in your analysis: claimed token, provider, documented purpose, verification method, and date checked. Avoid grouping every request from an AI company into a single training-traffic total. Browser agents and other provider tools may have separate identification rules.

BOT REQUEST EVIDENCE: Verify the request behind the claimed token
A user-agent string is a claim, not proof of crawler identity.

3. Build a reproducible verification record

Filter the user-agent field with a parser appropriate to your log format. Space-based column numbers copied from another server's example can misread quoted fields or a customized format. Inspect a few parsed records before counting the full dataset.

  1. Preserve the observation: record the timestamp, hostname, requested path, source-address field, claimed token, and response status.
  2. Consult the provider: use its current official verification method and the IP list for the relevant agent, where available.
  3. Compare correctly: use network-range membership checks for CIDR ranges, not a string-prefix comparison.
  4. Record the evidence version: save when the reference was retrieved. Address ranges can change, so a current list may not conclusively classify an old request.
  5. Assign a result: confirmed using the documented method, claimed but unverified, or insufficient evidence.

Use reverse-DNS verification only when the provider documents that method and the required checks. A plausible hostname or a familiar cloud-hosting network is not enough. Do not turn an unverified user-agent match into a broad firewall exception.

4. Read statuses as request outcomes

A response status describes that request, not the page's entire visibility in an AI product. Check a sample response and relevant security events before drawing conclusions.

  • 200: the request succeeded at the HTTP layer. Confirm it returned the intended content rather than a challenge, empty shell, or soft error.
  • 301 or 302: inspect the destination and whether the chain reaches the intended current page.
  • 403: access was refused. Investigate the component responsible; the status alone does not identify a robots exclusion rule.
  • 429: a rate limit affected the request. Review timing and policy with the infrastructure owner.
  • 404 or 410: check whether removal is intentional. Redirect only when there is a genuinely relevant replacement.
  • 5xx: investigate server or upstream failures and their scope.

Zero recorded hits can result from incomplete logging, a short observation window, no crawl during that period, or access restrictions. Frequent hits without citations do not prove a content-quality defect. Record the limits instead of assigning a cause the logs cannot establish.

CRAWLER ANALYSIS BOUNDARIES: Keep identity, response and business impact separate
Do not weaken access protections merely because a request claims a useful bot.

5. Report observations that support a decision

A useful weekly summary separates request identity from business interpretation. Include the collection window, coverage limitations, verification method, counts by agent, frequently requested URLs, and recurring response errors. Keep totals comparable when retention or sampling changes.

For example, a report might say: “The edge recorded requests claiming this bot token; most matched the provider list checked that day, while several could not be verified. Confirmed requests to the pricing page returned a challenge response.” That points to a specific investigation without claiming lost revenue or guaranteed AI visibility.

If your hosted platform does not expose the needed records, ask what supported logs or reporting it offers. Do not add a new reverse proxy merely to obtain a metric without checking platform compatibility, security ownership, cost, and operational consequences.

Keep access policy separate from analytics

Use log evidence to discuss whether actual behavior matches the site's intended policy. For the implementation side, see our AI crawler access guide. Changes to robots directives, rate limits, or firewall access should be deliberate, reviewed, and tested with a rollback plan. Do not automatically weaken protections because a request claims to be a useful crawler.

For the broader technical context, see our technical SEO guide. Recheck provider documentation when the classification rules change, and keep crawl observations separate from referral traffic, citations, and qualified inquiries.