Reading Your Server Logs to See Which AI Bots Crawled What Pages

Server logs reveal which AI crawlers fetched your pages and which are fakes.

Cover illustration for “Reading Your Server Logs to See Which AI Bots Crawled What Pages”
Written by
Marcus Delray
Published
November 23, 2026
Reading time
8 min read
Sources cited
2 sources ↓

To detect AI agents on a website, analyze server or CDN access logs, classify crawler user-agent tokens by purpose, and verify their source IPs before attributing requests to a provider. Verified requests show which pages ChatGPT, Claude, and other AI systems fetched, including requests that JavaScript analytics never records. The distinction is between a bot claiming an identity and evidence that supports it.

Why server logs are the only complete record of AI crawler activity

AI crawlers fetch raw HTML and disconnect without executing JavaScript. No analytics tag fires, no session is created, and no event reaches GA4 or another client-side platform. A channel group, referrer regex, or custom dimension cannot recover a request if it produced no event. The access log records the request instead, preserving details such as its timestamp, source IP, path, status, user-agent, and bytes sent.

That measurement gap has an asymmetric commercial effect. A page can be heavily fetched by AI systems that shape answers about a brand, product, or industry while client-side dashboards show nothing. Most AI-bot HTTP activity comes from requests for training, with a smaller share coming from fetches triggered by live users. The least visible traffic is therefore also the most voluminous.

The eight log fields that determine what questions you can answer

The usefulness of an access log depends on which fields the server or CDN preserves. Eight fields provide the foundation for crawler analysis. Timestamp establishes when a request happened and supports crawl-frequency analysis over time. Source IP makes it possible to test a claimed identity against a provider’s published ranges. Hostname identifies the requested site or subdomain, preventing requests across a multi-domain setup from being treated as visits to one site.

Path reveals which content the crawler requested, but HTTP status determines how that request should be interpreted. A 200 means content was served, while a 403 means a block fired. Status also distinguishes redirects and errors from successful access. User-agent states who the crawler claims to be and gives a starting point for classification. It is not proof of who made the request.

Bytes sent and response time add an operational dimension. Bytes sent is a proxy for response weight, so unusually large responses to bot IPs can expose content serving that was not intended. Response time flags the resource impact of heavy crawl sessions. These fields answer different questions from identity and content access. For practitioners, the prerequisite is to fix missing source-IP or user-agent logging before beginning downstream analysis, rather than treating incomplete records as adequate evidence.

The crawler taxonomy across OpenAI, Anthropic, Perplexity, Meta, and xAI

Diagram: AI Crawler Taxonomy: Provider, Purpose, and Agent Token. Visualizes: Show a structured breakdown of five AI providers mapped to their named crawler agents and the purpose each agent serves (training, search indexing, user-triggered…

Purpose determines the consequence of allowing or blocking a crawler. Training crawls collect material for model training, search-index crawls build the provider’s answer or citation index, and user-triggered fetches retrieve pages needed for a live query. Those are different uses of the same content. Combining them into one “AI traffic” category hides the distinction between corpus collection and visibility in user-facing answers.

OpenAI separates these jobs across named agents. GPTBot is its training crawler, OAI-SearchBot serves the ChatGPT Search index, and ChatGPT-User handles user-triggered fetching. GPTBot has its own robots.txt token, independent of search. OAI-AdsBot performs ad-page safety work outside that three-way split.

Anthropic documents ClaudeBot for training, Claude-SearchBot for search indexing, and Claude-User for user-triggered fetching. Blocking Claude-User prevents Claude from fetching pages in response to user queries. Perplexity makes a comparable distinction between PerplexityBot, its standing search-index crawler, and Perplexity-User, its live-user fetcher. Perplexity recommends allowing its index crawler for sites that want to appear in results. Provider and purpose therefore need separate treatment.

Meta tokens to recognize include meta-externalagent, meta-webindexer, meta-externalads, and meta-externalfetcher, although recognizing a token does not establish a verified identity. xAI presents a different discovery problem because it publishes no crawler documentation page. Google-Extended is different again. It is a robots.txt token controlling whether content collected by Google's search crawler trains Gemini models and grounds responses in Gemini Apps and Vertex AI. It will not appear as a distinct user-agent in logs.

Why user-agent strings cannot be trusted as identity, and what verification actually requires

A user-agent string is a claim written by the client. The fraud vector is documented at scale. citAEOtion recorded 139,943 requests as of October 2026 that claimed trusted crawler identities but failed verification. DataDome’s March 2026 report found that the overwhelming majority of tested reachable sites allowed a spoofed ChatGPT-style user-agent through without a block or challenge.

For Google and Bing, the verification method is forward-confirmed reverse DNS, or FCrDNS. It reverse-resolves the source IP to a hostname, then forward-resolves that hostname back to the same IP. For OpenAI, Anthropic, and Perplexity, the practical check is against published source-IP ranges. OpenAI publishes per-bot JSON files, so checks can use the range for a specific agent. For edge-run agents, HTTP message signatures are the only way to verify who made the request.

Behavioral detection addresses a different part of the problem. Reports describe xAI retrieval traffic using rotating proxy or datacenter addresses, with other reports describing residential or mobile carrier IPs and spoofed Safari or Chrome user-agents. The user-agent layer cannot reliably distinguish that traffic from human visitors. Fayolle et al.’s June 2026 study found that network, HTTP, and browser fingerprinting could tell all the LLM-based web agents it tested apart from humans and from one another. The study also found that stealth mechanisms often increased detectability, supporting layered detection.

A six-step workflow for turning raw log lines into classified, verified crawler intelligence

Diagram: Six Steps from Raw Log Lines to Verified Crawler Intelligence. Visualizes: Illustrate a linear six-step workflow for processing server logs into classified, verified crawler data.

The first step is to confirm that the logs preserve source IP and user-agent before any filtering begins. If either is absent, the logging configuration needs correction before the records can support meaningful classification and verification.

The second step is to filter with grep or log queries using stable token substrings of browser-like user-agent strings. The matching set includes GPTBot, OAI-SearchBot, ChatGPT-User, OAI-AdsBot, ClaudeBot, Claude-SearchBot, Claude-User, PerplexityBot, Perplexity-User, meta-externalagent, meta-webindexer, meta-externalads, and meta-externalfetcher, with timestamp, source IP, path, and HTTP status extracted for each match.

The third step is to assign the documented purpose immediately, distinguishing training, search-index, and user-triggered requests while retaining separate uses such as ad-page safety. An aggregate “AI traffic” row at this stage would erase the signal needed for selective access decisions.

The fourth step is to verify the claimed identity wherever a method exists. OpenAI, Anthropic, and Perplexity hits require source-IP checks against published ranges, while Google and Bing require FCrDNS. Meta and xAI traffic should remain separately flagged as unverified.

The fifth step is to analyze the content accessed by verified crawlers, sorting paths by frequency and segmenting them by purpose. Pricing, documentation, and comparison pages deserve attention where their training activity differs disproportionately from their search-index activity.

The sixth step is to flag anomalies for security review and preserve the verification result in reporting. A matching bot token from an IP that fails verification can indicate malicious automation or an undocumented provider change, while volume spikes from unverified addresses claiming known identities are especially actionable.

A log entry proves access, so a 200 response does not establish that an answer cited the page, and an absent entry does not prove the page cannot be referenced through another retrieval route.

Canary tokens as a verification layer when IP ranges are absent or spoofed

Canary tokens help when a provider offers no usable IP ranges or reverse-DNS method. They introduce an independent, behavior-based signal into page content. The mechanism is to serve unique, opaque strings and then query AI chatbots about the page. If a response consistently includes or paraphrases a token unique to a particular crawl session, that provides evidence of exposure to that crawl.

Session-level uniqueness is essential to that inference. A static token attached to a page cannot link an output to a specific visit, so tokens must be unique per page visit. The process also requires active chatbot queries and output comparisons, making it manual or semi-automated. For traffic whose source is undisclosed and that uses rotating addresses and browser-like user-agents, canaries can show signs of ingestion that IP matching cannot. Logs show when a request happened, while tokens test whether the fetched content reached model outputs.

What the traffic mix actually looks like and what it means for content and robots.txt decisions

Most AI crawler traffic is for training and corpus collection, so limits on training affect a large share of requests. Search-index traffic represents a smaller share but has direct citation consequences. A heavily crawled page needs interpretation by purpose before its traffic can guide a content or access decision.

Separate training policy from search and live-user access. GPTBot can be blocked independently of OAI-SearchBot, and blocking ClaudeBot does not affect Claude-SearchBot or Claude-User. Blocking ChatGPT-User, Claude-User, or Perplexity-User reduces visibility in live user-directed responses. Robots.txt is advisory rather than enforced, and some bots ignore it entirely. Classified requests show how those choices line up with actual access, beyond the preferences stated in the rules.

The same distinction applies at the WAF layer. A rule matching “AI bot” as a category catches training, search, and user-fetch traffic together. Granular rules keyed to specific agent tokens are necessary when those purposes require different treatment, with identity verification guarding against spoofed claims. Content analysis then adds context to the policy. Path frequency segmented by purpose reveals whether commercially important pages are being collected for training, indexed for answers, or fetched for live questions.

Where server log analysis ends and real-time visitor intelligence begins

Server logs answer which verified crawlers accessed which content and when, but they do not establish the identities of human visitors, their companies, or their full journeys across pages and ad touchpoints. That requires a different instrumentation layer. For sessions backed by non-bot IPs, browser-like behavior, and JavaScript execution, the work moves from classifying crawlers to identity enrichment and journey tracking. Verification is needed to make that shift even when a request looks like it came from a browser.

Reverse IP lookup can map office or corporate VPN traffic to a business, but works poorly for people on residential connections. Its output is an account name and visited pages. A company match enriched with a job title establishes an account attribute.

A fuller visitor intelligence layer links records about each person to what they did during a session. Those records can include name, title, company, LinkedIn, business and personal email, do-not-call-filtered phone, seniority, and an ICP hot-lead flag. The journey supplies the behavioral context through page views, clicks, scroll depth, video plays, exit intent, and form submissions. Attribution ties Google, Meta, and LinkedIn ad activity to identified individuals, while CRM status distinguishes customers and existing records from new prospects. A single identification ping lacks that context.

Slack and Microsoft Teams support alerts, while HubSpot, Salesforce, and Attio provide CRM destinations and ad platforms support retargeting non-converting visitors. REST API access, bulk CSV, cryptographically signed webhooks, and an MCP connector can bring visitor data into existing tools, including Claude, Claude Code, ChatGPT, and Codex. A platform that mixes AI agents into human sessions overstates its effective match rate, repeating the same error as a log report that treats a user-agent claim as verified identity.

Methodology & sources

  1. On the Internet, Nobody Knows You're an LLM Bot: Unmasking Web Agents with Multi-Layer Fingerprinting

    Supplied the finding that network, HTTP and browser fingerprinting distinguishes LLM web agents from humans and from each other, and that stealth measures often increase detectability.

  2. Identifying AI Web Scrapers Using Canary Tokens

    Underpinned the section on canary tokens as a verification layer, including the need for per-visit unique tokens and the manual query-and-compare process.

Marcus Delray