
Identifying AI Agent Traffic in Your Own Logs
A four-rung signal ladder from declared user agents to cryptographic signatures, structured logging at the edge, a versioned match list, and honest confidence labels.
TL;DR: To identify AI agent traffic, treat identification as its own engineering layer with an explicit confidence level per request. The signals form a ladder: declared user agents, behavioral hints, published IP ranges and verified-bot programs, and cryptographic signatures. Confidence rises up the ladder while coverage falls. This article covers that ladder, a structured logging design that records the signals at the edge, a versioned match list, and the honesty rules that keep agent-traffic numbers from being read as more certain than they are.
Identification precedes every other layer
You cannot serve, test, or measure what you cannot see. Every later decision about agents, such as whether a markdown representation gets used, how signature verification behaves, or whether a capability is in demand, reads from the identification layer. If that layer is a regular expression run over raw access logs once in a while, every decision built on it inherits its guesswork.
The scope line comes first. This article answers one question: which requests are agents, and how sure are we? What to do about them, whether to serve, shape, challenge, block, or charge, is policy that sits above implementation and belongs to the people who own those business decisions. Identification produces the evidence they decide with.
Two adjacent areas are also out of scope. Maintaining the catalog of crawler user agents for allow-or-block and citation decisions belongs to generative engine optimization practice. Detecting and mitigating adversarial bots is web security, which works in the opposite direction. This article instruments visibility of legitimate agents.
Agent traffic is not one thing. Index crawlers fetch broadly on their own schedule, live retrieval fetches arrive because a user asked an assistant a question a moment ago, and user-delegated agents act inside a session on someone's behalf. They look different in logs, in volume, timing, and paths requested, so the identification layer should record which class a request appears to belong to. Here that taxonomy is an observation shape, not a policy frame.
The signal ladder
The signals available to a serving stack stack into four rungs.
| Rung | Signal | Confidence | Coverage |
|---|---|---|---|
| 1 | Declared user agent | Low: trivially spoofed | Broad: RFC 9110 says a user agent SHOULD send one in each request unless specifically configured not to |
| 2 | Behavioral hints | Low to medium: circumstantial | Partial |
| 3 | Published IP ranges and verified-bot programs | High for listed operators | Listed bots only, and lagging |
| 4 | Cryptographic message signatures | Highest, once the signature verifies | Narrow: only agents that sign their requests |
Rung one, declared user agents. Agents that identify themselves do so in the User-Agent header, and some operators publish documentation of their strings. OpenAI, for example, documents four separate user agents: one that surfaces websites in ChatGPT's search features, one that crawls content that may be used to train its generative AI foundation models, one that validates the safety of web pages submitted as ads on ChatGPT, and one used for certain user actions in ChatGPT and Custom GPTs, each with a published IP address file (as of Nov 2026, OpenAI documentation). Lists like this are living data: cite them with an access date and refresh them, never hardcode them as permanent fact. And anyone can send any string, so a declared user agent alone is a claim, not an identity.
Rung two, behavioral hints. Some request patterns suggest a machine reader without proving one: an Accept: text/markdown header, requests for markdown variants of pages, probes of well-known paths such as signature key directories or agent endpoints, and fetch patterns such as retrieving a page without any of its subresources, which a browser can also produce when it reuses fresh responses from its own cache. These raise or lower confidence; they do not settle it.
Rung three, published ranges and verified-bot programs. When a request claiming to be a given operator's agent also arrives from that operator's published IP ranges, confidence rises materially. CDN and traffic providers run verified-bot programs that do this matching at scale; Cloudflare's verified bots documentation describes its verified-bot category (as of Nov 2026). Where an operator documents reverse DNS verification instead of range files, a forward-confirmed reverse DNS lookup, resolving the IP to a hostname and back again, serves the same purpose, and its result belongs in the same log field. These programs cover only the bots a provider has listed (Cloudflare and Fastly both describe adding bots through a submission that the provider reviews, as of Nov 2026), and both range files and registries lag changes in the real world.
Rung four, cryptographic signatures. Requests signed under RFC 9421 HTTP Message Signatures carry cryptographic evidence tied to a signing key. The key directory comes from the IETF working-group draft for signing automated traffic (draft-ietf-webbotauth-httpsig-protocol-01, an Internet-Draft, not an RFC, as of Nov 2026), not from RFC 9421 itself. Under that draft, a valid signature over a resolved key directory URL proves that a holder of a key that URL publishes signed the covered message. The draft notes that the message can still be replayed, within bounds set by the signature's lifetime and covered components, and that a valid signature says nothing about who operates the agent, whether the agent is benign, or whether the request is authorized. At this layer the job is to record that a signature is present, which key directory it claims in its Signature-Agent header, and the verification result once one exists; verifying it, including key fetching and validation, is a separate piece of work with its own mechanics. The draft treats an unresolved Signature-Agent as a claim rather than an identity: it becomes an identifier once the verifier fetches it and finds a key there that verifies the request, and until then verifiers MUST NOT attach policy to it. In this design, a request reaches rung four only when its signature verifies.
The ladder's design property is a tension worth stating plainly: confidence scales up the ladder, coverage scales down it. The weakest signal can appear on any request, and the strongest appears only on requests from agents that sign them. An identification layer records every rung it can observe and reports the highest one reached, counting rung four only when the signature verified, rather than picking a single signal.
Logging design for agent observability
Capture the signals where requests arrive, at the edge or in middleware, as structured fields. Reconstructing them later with regular expressions over raw logs loses the headers that were never logged and makes every analysis a new parsing project.
{
"ts": "2026-10-03T07:41:12Z",
"path": "/guides/returns",
"representation": "markdown",
"accept": "text/markdown",
"ua_raw": "Mozilla/5.0 (compatible; ExampleAgent/1.2; +https://agent.example/bot)",
"agent_match": { "operator": "example-agent-co", "class": "live-retrieval", "list_version": "2026-10-01" },
"ip_verified": true,
"signature_present": true,
"signature_verified": true,
"signature_agent": "https://agent.example/.well-known/http-message-signatures-directory",
"confidence_rung": 4
}The match list behind agent_match is configuration. Keep it in the repository, map each known agent to an operator and a class, version it, and refresh it against operators' published sources on a schedule with an owner. Recording the list version on each log line means old analyses stay reproducible after the list changes.
Keep cardinality sane. Aggregate by operator and class, not by raw user-agent string, which can change with version numbers and added markers; one agent can appear under more than one string. The classification itself describes the requester, the agent software, rather than the person behind it, but the IP addresses it checks, together with the raw headers logged alongside them, can be personal data in some jurisdictions. Under the EU GDPR, for example, the Article 4(1) definition of personal data names an online identifier among the identifiers by which a natural person can be identified, directly or indirectly, and Recital 30 says natural persons may be associated with online identifiers such as internet protocol addresses, and that this may leave traces that, in particular when combined with unique identifiers and other information received by the servers, may be used to create profiles of natural persons and identify them. Consent and privacy obligations for these fields and for whatever else the logs contain are a separate legal question.
The output artifact is an agent-share view per surface: the site's HTML pages, markdown variants, feeds, and well-known paths. Regression tests read it to confirm agent-facing surfaces are still being fetched successfully, and anyone deciding whether to invest further in agent readiness reads it to see whether agents use what already exists.
What identification cannot tell you
Numbers derived from declared user agents are estimates with error bars that the user-agent string alone cannot measure. Spoofed strings inflate some operators' apparent traffic, and agents that do not identify themselves deflate the total. Any figure built on rung one should be labeled for what it is, declared agent traffic share, and never presented as the true share of agent traffic.
Absence is not innocence, and presence is not intent. Unsigned traffic includes legitimate agents that have not adopted signatures and adversaries who may never adopt them. A verified signature shows that a holder of a published key signed the covered components of a request, not who operates the agent, whether it is benign, whether the request is authorized, or why it sent the request. The signals identify origin claims; they say nothing about purpose.
The landscape moves. Operator lists, verified-bot programs, and signature adoption all change, sometimes quickly. Every specific claim about an operator or program needs an access date, and the match list is a maintenance surface with a named owner, not a file written once.
Identification produces evidence. Policy consumes it elsewhere. The job at this layer is that the evidence exists, is structured, and is honest about its own confidence.