Good bots, bad bots: identifying AI agents on your shop

TL;DR

Difficulty: Advanced

A bot's name in a request is a claim anyone can type. Identity has to be proved.

  • Check named crawlers and assistants against the operators' published IP lists, or by forward confirmed reverse DNS.
  • Signed requests (RFC 9421, Web Bot Auth) prove which service sent a request. OpenAI's agent signs today, the standard is still an IETF draft.
  • A valid signature proves who, never whether to trust them with a payment.
  • Put tight limits on payment, log in, sign up and basket for everyone, and let the rest browse within a generous limit. Blocking all unknown automation loses agent customers.

AI assistants now visit shops on behalf of real customers, and scrapers and card testers borrow their names. This chapter shows how an independent shop on Rails and Solidus checks who is really knocking, what each method proves, which standards are live and which are drafts, and where to be strict.

Every request says who it is, and anyone can say anything

Every time something asks your shop for a page, it sends a short line of text called the User-Agent header. A person on an iPhone sends something that mentions Safari. Google's crawler sends a line containing Googlebot. OpenAI's assistant, when it reads a page because someone asked it a question, sends a line containing ChatGPT-User1.

That line is written by the sender. Nothing checks it. A scraper in a rented data centre can type Googlebot into its requests in the same second it takes to type anything else. So the most common way of telling visitors apart, reading the label they wear, is also the easiest to fake.

For years this mattered mostly to large retailers. Two things have changed. First, automated traffic is now the majority of the web: Imperva, a bot protection company owned by Thales, reported that automated requests made up 51% of the web traffic it observed in 2024, with traffic it classed as malicious bots at 37%2, and its 2026 report put automated traffic at more than 53% for 20253. Those figures come from the vendor's own network and its own classification, so read them as a direction, not as a measurement of your shop. Second, some of the automated visitors are now customers, or at least they act for one. An assistant that checks the price and stock of a side table before its user buys is a bot. So is the script that tries 2,000 stolen card numbers on your payment page at 3am.

This chapter is about telling those apart. It covers what each verification method proves, from published IP lists to cryptographic signatures, which of them are live, which are still drafts, and what an independent shop on Ruby on Rails and Solidus can build this month. If you have not yet read how a shop exposes itself to agents, start with making your shop agent ready, because this chapter assumes the shop already has something worth protecting.

Example: three requests that all say they are ChatGPT

On a Tuesday morning, Callum, the developer at Wrenfield Home in Leeds (the invented shop of this series), finds three requests in the log for the Hollin oak side table, £189, SKU WH-1042. All three carry a User-Agent containing ChatGPT-User/1.0.

RequestSource address belongs toListed in OpenAI's published range?What it really is
1A cloud provider OpenAI usesYesVery likely OpenAI's assistant fetching the page for a user
2A home broadband line in LeedsNoA person who copied the header into a browser extension, or a script on a home computer
3A rented server abroadNoA scraper wearing a borrowed name

The label is identical. Only the second column, checked against OpenAI's own published list1, separates them. That is the whole problem of this chapter in one table: identity has to be proved by something the sender cannot simply type.

Four kinds of visitor, not two

The old split was "humans and bots". It no longer helps, because "bots" now contains your best new sales channel and your worst fraud risk. A shop needs at least four classes.

  • Human browsers. A person, with a normal browser, clicking.
  • Assistant fetchers and agents. Software that visits because a specific person asked it to, right now: OpenAI's ChatGPT-User, Perplexity's Perplexity-User, Anthropic's Claude-User, Google's user triggered fetchers including Google-Agent, and agents that sign their requests. Google describes Google-Agent as "used by agents hosted on Google infrastructure to navigate the web and perform actions upon user request"4.
  • Crawlers. Software that visits on its own schedule to build an index or a training set: Googlebot, Bingbot, OAI-SearchBot (for ChatGPT's search features), GPTBot (for training OpenAI's models), PerplexityBot, ClaudeBot and Claude-SearchBot156.
  • Unverified bots. Everything automated that cannot prove who it is. Some of it is harmless (an uptime monitor, a student's script), much of it is not.

The difference between the second and third class matters more than it looks. Crawlers are expected to obey your robots.txt file. Fetchers acting for a person generally do not: Google says its user triggered fetchers "generally ignore robots.txt rules"4, Perplexity says the same of Perplexity-User6, and OpenAI says robots.txt rules "may not apply" to ChatGPT-User1. Anthropic states that its three bots honour robots.txt5. Each operator publishes the user agent names and, for most of them, the IP ranges. The table summarises what each documents, as read on 23 November 2026.

OperatorName in the requestVisits becauseObeys robots.txt (own documentation)How to verify
GoogleGooglebotBuilding the search indexYesReverse DNS or published IP list7
GoogleGoogle-Agent and other user triggered fetchersA user asked for itGenerally no4Published IP lists, Web Bot Auth being tested4
GoogleGoogle-ExtendedNot a visitor: a robots.txt token for Gemini training and groundingToken onlyNot applicable8
OpenAIOAI-SearchBotSearch features in ChatGPTYesPublished IP list1
OpenAIGPTBotTraining dataYesPublished IP list1
OpenAIChatGPT-UserA user asked a questionMay not apply1Published IP list1
OpenAIChatGPT agentA user delegated a taskNot statedSigned requests (Web Bot Auth)9
AnthropicClaudeBot, Claude-SearchBot, Claude-UserTraining, search, user requestsYes, all threePublished IP list5
PerplexityPerplexityBotSearch indexRecommended to allowPublished IP list6
PerplexityPerplexity-UserA user asked a questionGenerally no6Published IP list6

If you want the strategic side of this, which crawlers to let in and why, the chapter on how AI agents find and choose products covers it. This chapter is about the next question: once a request arrives claiming to be one of these, is it?

Example: sorting one hour of Wrenfield's log

Callum takes one hour of Wednesday's log, 7,140 requests for pages and API endpoints (images and stylesheets come from the content delivery network and are left out). He sorts by the claimed name first, then checks each claim.

Claimed identityRequestsClaim confirmedClaim failed
A normal browser4,4102,998 behave like people (load the page's assets, normal pace)1,412 load nothing but HTML, at machine speed
Googlebot or Bingbot1,05098070
An AI crawler (OAI-SearchBot, GPTBot, PerplexityBot, ClaudeBot)45043119
An assistant fetcher or signed agent66064218
Nothing recognisable (empty, curl, python)570Not applicable570

So 7,140 requests become 2,998 likely humans, 1,411 verified crawlers (980 plus 431), 642 verified assistants and agents, and 2,089 unverified bots (1,412 plus 70 plus 19 plus 18 plus 570). The check rows hold the interesting cases: 107 requests wore the name of a well known bot and could not back it up. Those are not confused crawlers. They are someone pretending.

robots.txt is a request, not a lock

Before any verification, many shops start with robots.txt, the plain text file at the root of a site that tells crawlers which paths they may visit. It is worth being precise about what it is. The standard was finally written down in September 2022 as RFC 9309, a Request for Comments (RFC), the document series in which the Internet Engineering Task Force (IETF) publishes internet standards, and it says so in one line: "These rules are not a form of access authorization."10

A well behaved crawler reads the file and obeys it. A badly behaved one ignores it, and nothing in the protocol stops it. And as the table showed, fetchers acting for a user are documented as generally not following it at all, by design, because the operator treats them as a person's browser at one remove.

There is a public example of why the label matters as much as the file. On 4 August 2025, Cloudflare published a post saying it had observed Perplexity's declared crawler being blocked and then requests arriving with "a generic browser intended to impersonate Google Chrome on macOS", from IP addresses outside Perplexity's published ranges, and that it had removed Perplexity from its list of verified bots11. Perplexity disputed this the same month, saying the traffic Cloudflare attributed to it came largely from BrowserBase, a third party cloud browser service that Perplexity says it uses only occasionally, and arguing that agents fetching for a user are not crawlers12. I am not the judge of that dispute, and you do not need to be either. The lesson for a shop is narrower and not in dispute: a name in a header and a line in robots.txt are both voluntary. Anything that matters needs a check the sender cannot opt out of.

Example: what Wrenfield's robots.txt can and cannot do

Priya, Wrenfield's owner, decides she wants her products found in AI search but not used for model training. Callum writes:

User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: Google-Extended
Disallow: /

User-agent: *
Disallow: /checkout
Disallow: /account
Allow: /

What this achieves: OpenAI documents that disallowing GPTBot signals the content should not be used for training, while OAI-SearchBot stays welcome1. Google documents that Google-Extended controls use for Gemini training and grounding and does not affect inclusion in Google Search8. What it does not achieve: it stops none of the 2,089 unverified requests from the previous example, and the Disallow: /checkout line is advice, not a barrier. The checkout is protected by the rules later in this chapter, never by this file.

Method one: the operator's published address list

The first real check uses the fact that a request's source IP address is much harder to fake than a header. To receive a reply over the Transmission Control Protocol (TCP), the sender has to actually control that address. So if OpenAI publishes the address ranges its ChatGPT-User traffic comes from, and a request claiming that name comes from outside them, the claim is false.

Most operators now publish these lists as JSON files: OpenAI one per bot (searchbot.json, gptbot.json, chatgpt-user.json)1, Google separate files for common crawlers, special crawlers, user triggered fetchers and user triggered agents7, Perplexity one per bot6, Anthropic one list for its bots5, and Microsoft a file for Bingbot13. They share a simple shape: a list of prefixes in Classless Inter Domain Routing (CIDR) notation, which is a compact way to write a block of addresses (104.210.139.192/28 means the 16 addresses starting at 104.210.139.192).

The method has two weaknesses, and the IETF draft discussed below names both. A cloud provider owns the addresses and rents them out, so the list says "this operator uses these addresses", with little to bind the publication to the service actually renting them. And the lists change, so a copy from last month produces false alarms14.

The fix for the second weakness is mechanical: fetch the lists daily and store them in the database, so every check uses today's list. In PostgreSQL the inet and cidr types and the <<= operator ("is contained by or equals") do the matching for you15.

-- PostgreSQL. A daily job loads every operator's published JSON into this table.
CREATE TABLE bot_ip_ranges (
  operator    text NOT NULL,      -- 'openai', 'google', 'anthropic', 'perplexity', 'microsoft'
  bot_name    text NOT NULL,      -- 'ChatGPT-User', 'Googlebot', ...
  kind        text NOT NULL,      -- 'assistant' or 'crawler'
  prefix      cidr NOT NULL,
  loaded_on   date NOT NULL DEFAULT current_date
);
CREATE INDEX bot_ip_ranges_prefix_idx ON bot_ip_ranges USING gist (prefix inet_ops);

-- Does this request's address belong to the bot it claims to be?
SELECT EXISTS (
  SELECT 1 FROM bot_ip_ranges
  WHERE bot_name = 'ChatGPT-User'
    AND inet '104.210.139.200' <<= prefix
) AS address_matches_claim;

The GiST index with the inet_ops operator class lets PostgreSQL answer containment questions without scanning every row, which matters once you check every request rather than a sample.

Example: checking the three ChatGPT requests

Callum loads chatgpt-user.json on Tuesday morning. The file lists, among others, the prefix 104.210.139.192/2816. Request 1 came from 104.210.139.200. A /28 block holds 16 addresses, here 104.210.139.192 to 104.210.139.207, and 200 lies inside, so the query returns true. Request 2 came from a Leeds broadband address and request 3 from a server abroad. Neither falls inside any ChatGPT-User prefix, so both return false. Request 1 moves to "verified assistant". Requests 2 and 3 move to "unverified bot", with a note that they claimed a name they could not prove, which is a stronger signal than claiming nothing.

Method two: forward confirmed reverse DNS

The second classic method uses the domain name system (DNS), the internet's address book, in both directions. Google documents it for Googlebot in four steps7:

  1. Take the IP address from your log and do a reverse lookup, which asks "what name belongs to this address?".
  2. Check that the name ends in googlebot.com, google.com or googleusercontent.com.
  3. Do a normal, forward lookup on that name.
  4. Check that it returns the original IP address.

Step 4 is the clever part. Anyone who controls an address can set its reverse name to crawl.googlebot.com, but only Google controls what googlebot.com names point to. If the forward lookup comes back to the same address, the name and the address vouch for each other.

Ruby's standard library does this without any gem:

require "resolv"

# Forward confirmed reverse DNS, as Google documents it for Googlebot.
def crawler_verified?(ip, allowed_suffixes)
  dns = Resolv::DNS.new
  dns.timeouts = 2
  host = dns.getname(ip).to_s
  return false unless allowed_suffixes.any? { |s| host == s || host.end_with?(".#{s}") }

  dns.getaddresses(host).map(&:to_s).include?(ip)
rescue Resolv::ResolvError
  false
ensure
  dns&.close
end

crawler_verified?("66.249.66.1", %w[googlebot.com google.com googleusercontent.com])
# => true
crawler_verified?("8.8.8.8", %w[googlebot.com])
# => false

I ran both calls on 23 November 2026. The first address is the one Google uses in its own example7. The second is Google's public DNS resolver, which belongs to Google but is not a crawler, which is exactly why the suffix check comes first.

Two lookups per request would slow a shop down and hammer the DNS servers, so the answer is cached per address, for a day for a positive answer and an hour for a negative one. DNS checks only work where the operator sets up reverse names. Google and Microsoft do for their crawlers. Most AI operators instead publish IP lists, which is why method one is the workhorse.

Example: the 70 false Googlebots

Of the 1,050 requests in Callum's sample hour that claimed to be Googlebot or Bingbot, 70 failed. He runs the check by hand on one, from 203.0.113.45 (an address range reserved for documentation, used here because the example is invented). The reverse lookup returns a hosting company's generic name, which does not end in any Google domain, so step 2 fails and steps 3 and 4 never run. All 70 came from four addresses at the same hosting company and asked only for product pages, in alphabetical order of URL, at 11 requests a second. Real Googlebot does not crawl in alphabetical order. These were a price scraper in disguise. Without the check, Callum would have whitelisted them as "Google" and they would have walked past every limit.

Method three: requests that carry a signature

Address lists and DNS answer "which network did this come from?". They cannot answer "which service sent this?", because many services share one cloud. The newer approach answers that directly, with cryptography.

The building block is RFC 9421, HTTP Message Signatures, a Proposed Standard published in February 202414. The idea, explained for a beginner:

  • The sender holds a private key, a secret only it knows, and publishes the matching public key, which anyone may see.
  • For each request, the sender picks a few parts of it (the host it is talking to, perhaps the path), writes them out in a fixed format called the signature base, and signs that text with the private key.
  • It sends the signature in two headers: Signature-Input says which parts were signed and with which key and when, Signature carries the signature itself.
  • The receiver rebuilds the same signature base from the request it received, fetches the public key, and checks the signature. If one character differs, the check fails.

A signature made with a private key can be checked by anyone with the public key, but only made by the holder of the private key. That is the property a User-Agent string lacks.

RFC 9421 is a general tool. Web Bot Auth is the profile of it for bots and agents. It is being standardised by an IETF working group of the same name, which is active with an approved charter17. Its main document, draft-ietf-webbotauth-httpsig-protocol, was at version 01 on 29 October 2026, written by authors from Cloudflare and Google18. As a working draft it is, in the IETF's own words on every such document, "work in progress". The charter's milestones aimed to send it to the IESG (the body that approves standards) by 30 April 202617. That date has passed and the document is still a draft, which tells you how fast this is really moving: quickly, but not as quickly as the press releases.

What the draft asks of an agent, as of version 0114:

  • Sign at least @authority (the host name of your shop) or @target-uri (the full address).
  • Include created and expires times, with expires recommended no more than 24 hours after created.
  • Set keyid to the key's thumbprint, a short fingerprint calculated from the public key itself (defined in RFC 7638, with the Ed25519 rules in RFC 8037)1920.
  • Set tag to web-bot-auth.
  • Send a Signature-Agent header with an https address where the public keys can be fetched, and sign that header too.
  • Publish the keys as a JSON Web Key Set (JWKS), a standard JSON format for public keys, served at /.well-known/http-message-signatures-directory with its own media type.

Who signs today, and who checks

This is the part that changes monthly, so every line is dated to my reading on 23 November 2026.

WhoWhat is documentedStatus
OpenAIChatGPT's agent signs every request with RFC 9421, Signature-Agent set to "https://chatgpt.com", keys published at chatgpt.com/.well-known/http-message-signatures-directory9Live. I fetched the directory: one Ed25519 key, served with the draft's media type21
GoogleExperimenting with Web Bot Auth for Google-Agent, using the identity agent.bot.goog4Experiment
CloudflareVerifies Web Bot Auth for registered bots. Since 1 July 2026 signed agents are part of its Verified status, marked "Direct" or "Intermediary"22. Its documentation, updated 8 October 2026, still asks for Signature-Agent as a plain quoted string and rejects the key parameter the newer draft uses23Live, older draft form
Akamai, HUMAN, VercelVerify ChatGPT agent signatures automatically, according to OpenAI9Live (per OpenAI)
Amazon Web ServicesAWS WAF Bot Control supports Web Bot Auth from version 4.0 of its bot rule set24Live
Visa, Mastercard, American ExpressAnnounced in October 2025 that their agent programmes build on Web Bot Auth25Announced, see the payment section below

Notice the row for Cloudflare. The draft moved Signature-Agent from a plain string to a dictionary keyed by signature label, and keeps the old form as "legacy"14. A large verifier still expects the old one. A shop that verifies signatures itself should accept both forms for now. The code below does.

Example: one signed request to Wrenfield, verified by hand

An invented shopping agent, operated from https://shopper.example, asks Wrenfield's agent product endpoint (built in chapter 5) for the side table at 8am Coordinated Universal Time (UTC) on 13 January 2027. It sends:

GET /api/agent/products/hollin-oak-side-table HTTP/1.1
Host: wrenfieldhome.example
Signature-Agent: sig1="https://shopper.example"
Signature-Input: sig1=("@authority" "@path" "signature-agent";key="sig1");created=1799827200;expires=1799827500;keyid="NMk-SXCcYw5H1ZNCxTd4QAZ4g7F7pO_-Bajr821OBK0";alg="ed25519";tag="web-bot-auth"
Signature: sig1=:BUl148SatKjvKi+DEAX6Le1k1+DeZr5Viyj+wyUjxlqB59OKL3yFh0L3YyXKYqm2eKbhO4sN00zSwqr2efNWAA==:

Callum's server works through it step by step.

  1. Read the input. The label is sig1. Signed parts: the host, the path, and the Signature-Agent entry for sig1. created is 1,799,827,200 seconds after 1 January 1970, which is 8:00:00am UTC on 13 January 2027. expires is 300 seconds later.
  2. Check the policy. The tag is web-bot-auth. The algorithm is Ed25519. The server's clock says 8:00:02am, which is after created and before expires, and the signature is 2 seconds old, well inside Wrenfield's own limit of 300 seconds.
  3. Rebuild the signature base from what actually arrived, one line per signed part, the parameters last, no newline at the end:
"@authority": wrenfieldhome.example
"@path": /api/agent/products/hollin-oak-side-table
"signature-agent";key="sig1": "https://shopper.example"
"@signature-params": ("@authority" "@path" "signature-agent";key="sig1");created=1799827200;expires=1799827500;keyid="NMk-SXCcYw5H1ZNCxTd4QAZ4g7F7pO_-Bajr821OBK0";alg="ed25519";tag="web-bot-auth"
  1. Fetch the key. The server requests https://shopper.example/.well-known/http-message-signatures-directory (or reads it from cache) and finds a key whose thumbprint equals the keyid.
  2. Check the signature of those four lines against that key. It matches. Outcome: verified, agent https://shopper.example.

Now change one thing. If someone replays the same headers against /checkout, step 3 produces a different @path line, the text differs, and the check fails. If someone replays them at 8:06am, step 2 fails, because expires has passed. Both results come out of the code below. I generated this key pair and signature for the example and ran every case.

The verifier in Ruby

This is a deliberately small verifier for one signature, Ed25519 only, and the components Wrenfield accepts. It uses only Ruby's standard library. The Ed25519 public key arrives as 32 raw bytes in the x field of a single JSON Web Key (JWK), and OpenSSL wants it wrapped in a short standard header (the SubjectPublicKeyInfo structure from RFC 8410), which is what the 12 byte prefix does26.

# app/services/agent_signature.rb
require "openssl"
require "base64"
require "digest"

# Verifies one Web Bot Auth signature (RFC 9421 with Ed25519) on a request.
# Minimal on purpose: one signature label, the components this shop accepts.
class AgentSignature
  Result = Struct.new(:outcome, :agent_url, :reason)
  ED25519_SPKI_PREFIX = ["302a300506032b6570032100"].pack("H*") # RFC 8410
  MAX_AGE = 300 # seconds: this shop's own freshness policy

  def self.verify(headers:, authority:, path:, directory:, now: Time.now.to_i)
    label, inner = headers["signature-input"].to_s.split("=", 2)
    return Result.new(:unsigned, nil, "no signature") if inner.nil?

    components = inner[/\A\((.*?)\)/, 1].to_s.scan(/"[^"]+"(?:;key="[^"]+")?/)
    params = inner.sub(/\A\(.*?\)/, "").scan(/;(\w+)=("[^"]*"|\d+)/)
                  .to_h { |k, v| [k, v.delete('"')] }

    return Result.new(:invalid, nil, "tag") unless params["tag"] == "web-bot-auth"
    return Result.new(:invalid, nil, "alg") unless [nil, "ed25519"].include?(params["alg"])
    created, expires = params["created"].to_i, params["expires"].to_i
    unless created <= now + 5 && now < expires && now - created <= MAX_AGE
      return Result.new(:invalid, nil, "stale or expired")
    end

    header = headers["signature-agent"].to_s
    agent_value = header.start_with?('"') ? header : header[/(?:\A|,\s*)#{Regexp.escape(label)}=("[^"]+")/, 1]
    return Result.new(:invalid, nil, "no Signature-Agent") if agent_value.nil?

    lines = components.map do |c|
      case c
      when '"@authority"' then %("@authority": #{authority.downcase})
      when '"@path"' then %("@path": #{path})
      when /\A"signature-agent"/ then %(#{c}: #{agent_value})
      else return Result.new(:invalid, nil, "unsupported component #{c}")
      end
    end
    unless components.include?('"@authority"') && components.any? { |c| c.start_with?('"signature-agent"') }
      return Result.new(:invalid, nil, "required components missing")
    end
    base = (lines << %("@signature-params": #{inner})).join("\n")

    agent_url = agent_value.delete('"')
    jwks = directory.call(agent_url) # cached fetch, see below
    return Result.new(:unverified, agent_url, "directory unavailable") if jwks.nil?
    jwk = Array(jwks["keys"]).find { |k| k["crv"] == "Ed25519" && thumbprint(k) == params["keyid"] }
    return Result.new(:unverified, agent_url, "key not in directory") if jwk.nil?

    key = OpenSSL::PKey.read(ED25519_SPKI_PREFIX + Base64.urlsafe_decode64(jwk["x"]))
    signature = Base64.strict_decode64(headers["signature"].to_s[/(?:\A|,\s*)#{Regexp.escape(label)}=:([^:]+):/, 1].to_s)
    if key.verify(nil, signature, base)
      Result.new(:verified, agent_url, nil)
    else
      Result.new(:invalid, agent_url, "signature does not match")
    end
  rescue ArgumentError, OpenSSL::PKey::PKeyError => e
    Result.new(:invalid, nil, e.message)
  end

  # JWK SHA 256 thumbprint of an Ed25519 key (RFC 7638, RFC 8037 Appendix A.3)
  def self.thumbprint(jwk)
    json = %({"crv":"#{jwk["crv"]}","kty":"#{jwk["kty"]}","x":"#{jwk["x"]}"})
    Base64.urlsafe_encode64(Digest::SHA256.digest(json), padding: false)
  end
end

Three details deserve a word for anyone new to this.

  • The verifier returns three outcomes, not two. The draft recommends keeping "verified", "invalid" and "unverified" apart, where unverified means "I could not get enough information to decide", for example because the key directory was down14. An unverified request is not a liar. It goes down the normal bot path, never the trusted one and never straight to a block.
  • The key is looked up by computing each published key's thumbprint and comparing, rather than trusting a label in the directory, and only inside the directory named by the request. The draft insists on that pairing: a verifier that indexes keys by keyid alone can be tricked into attributing a request to the wrong operator14.
  • The parser is minimal. Real Signature-Input values are Structured Fields (RFC 8941) and can be more varied than these regular expressions accept. For a shop, a small, strict parser that rejects anything unusual is the safer default: an agent that gets rejected is unverified, not lost.

I checked this code against the Ed25519 test vectors published in the draft, both the new dictionary form and the legacy string form of Signature-Agent, and both verify14. Keep those vectors in your test suite, test first, as with any code on the critical path.

Fetching the directory is the other half. The draft tells verifiers not to follow redirects, to treat anything but a 200 response as a failure, and to bound these fetches because the URL comes from an untrusted request (a classic route for server side request forgery, where an attacker makes your server call an address of their choosing)14. Wrenfield starts with an allowlist of directories it is willing to fetch, so an unknown signer is simply unverified.

# app/services/agent_directory.rb
require "net/http"

class AgentDirectory
  ALLOWED = %w[https://chatgpt.com https://shopper.example].freeze

  def self.call(url)
    return nil unless ALLOWED.include?(url)

    Rails.cache.fetch(["agent_directory", url], expires_in: 1.hour, skip_nil: true) do
      uri = URI.join(url, "/.well-known/http-message-signatures-directory")
      response = Net::HTTP.start(uri.host, uri.port, use_ssl: true, open_timeout: 2, read_timeout: 2) do |http|
        http.get(uri.request_uri)
      end
      # Net::HTTP never follows redirects by itself, which is what the draft asks for
      JSON.parse(response.body) if response.is_a?(Net::HTTPOK) && response.body.bytesize < 65_536
    end
  rescue Net::OpenTimeout, Net::ReadTimeout, SocketError, OpenSSL::SSL::SSLError, JSON::ParserError
    nil
  end
end

skip_nil: true stops a failed fetch from being cached as if it were an answer, so a short outage at the agent's end does not turn into an hour of unverified requests27.

Tap or click to open full screen and move around

What a valid signature proves, and what it does not

It is tempting to treat "verified" as "safe". The draft is careful not to, and so should you be. A valid signature over a resolved Signature-Agent address "proves that a holder of a key that URL publishes signed the covered message". It "says nothing about who operates the Agent, whether the Agent is benign, or whether the request is authorized. Those are origin policy."14

So a signature gives you a stable name you can count, rate limit and decide about, much like an account. It does not tell you the agent's user is honest, that the user really wants this side table, or that the card the agent will present belongs to them. Those questions belong to payments and fraud, which the chapter on agent checkout and payments and the next chapter on fraud and liability take up.

The other limit is replay. A signature covering only the host can be copied by anyone who sees it and reused against the same shop, for any path, until it expires. The draft states this plainly and recommends covering @method and @path as well, and treating a long lived static signature as a forbidden pattern14. Cloudflare goes further for its own service: it does not check nonce values, so it recommends very short expiry windows of about a minute23.

Example: how long a stolen signature is worth

Suppose an attacker captures one of the signed requests above, for instance from a misconfigured proxy log. What can it do?

  • If the agent had signed only @authority with a 24 hour expiry, the attacker could send any request to Wrenfield for up to 24 hours wearing the agent's verified name: 86,400 seconds of borrowed trust.
  • The real request signed @authority, @path and the agent header, with a 300 second expiry. The copy only works against /api/agent/products/hollin-oak-side-table, a public, read only page, and only for 300 seconds. Because Wrenfield also refuses signatures older than 300 seconds, the window cannot be stretched by an agent that sets a long expiry.

The difference is a factor of 86,400 ÷ 300 = 288 in time alone, before counting that the narrow copy only reaches one harmless page. That is why Wrenfield's policy accepts signatures on its checkout endpoints only if they also cover @method and @path.

The card networks' version: signatures that say "browsing" or "paying"

The payment networks have built on the same mechanism. On 14 October 2025, Cloudflare announced that Visa's Trusted Agent Protocol, developed with Cloudflare, builds on Web Bot Auth, that Mastercard was adding Web Bot Auth to Agent Pay, and that American Express would use it too25. Cloudflare's technical write up says both Visa's and Mastercard's versions add a tag that distinguishes browsing (agent-browser-auth) from paying (agent-payer-auth), that each network hosts its own directory of registered agents, and that agents must include a nonce, which Cloudflare checks for reuse28.

Visa's public repository, created on 10 October 2025, is a sample implementation rather than a finished specification: an agent, a registry of public keys, a content delivery proxy that verifies RFC 9421 signatures, and a sample merchant29. In its sample agent, the browsing signature covers the host and path and expires eight minutes after it is created30. The README describes how a verified agent can also pass, with the consumer's consent, identifiers such as a Payment Account Reference for a card on file or a loyalty number29.

I could not read Mastercard's own page on this, because it refused automated requests when I tried on 23 November 2026, so the Mastercard detail here rests on Cloudflare's press release and blog rather than on Mastercard's documentation. The chapter on the protocols of agentic commerce puts these programmes in context.

For a shop, the practical reading is this. These are identity signals at the same layer as Web Bot Auth, issued by a party (the card network) that also knows the agent has been through its registration. If your payment provider and your content delivery network support them, they will mostly arrive as a verified flag, not as something you parse. What they do not replace is your own checks on the order: the address, the amount, the basket.

Example: what changes when the agent is registered with a card network

An agent registered with Visa visits Wrenfield to buy the side table for its user, within the user's £200 delegated limit. Its browsing requests carry agent-browser-auth, and at the payment step it sends agent-payer-auth. Wrenfield's content delivery network checks both against the network's directory and passes "verified, Visa registered agent" to the shop.

What Wrenfield can now do differently: let the agent through the browsing throttle with the higher agent limit, skip the challenge page a headless browser would normally get, and record the agent's identity on the order for later evidence. What Wrenfield still does: run the payment through its provider's fraud screening, check that £189 plus free delivery fits the order, and keep its own record of what was sold. A verified agent with a stolen card is still a stolen card.

What bad bots actually do to a shop

The Open Worldwide Application Security Project (OWASP) keeps a catalogue of automated threats, the OWASP Automated Threat Handbook, at version 1.30 since 17 March 202631. It gives each threat an identifier, and six of them describe most of what reaches a shop like Wrenfield:

OWASP identifierNameIts definition, shortenedWhat it looks like in a shop
OAT 001CardingMany payment attempts to check which stolen card details workBursts of small failed payments on the payment step
OAT 008Credential stuffingMass log in attempts with stolen username and password pairsThousands of failed logins, a few accounts taken over
OAT 011ScrapingCollecting content or data for use elsewhereEvery product page fetched, prices copied
OAT 005ScalpingGetting limited goods by unfair methodsLimited runs sold out to resellers
OAT 021Denial of inventoryDepleting stock without completing the purchaseStock held in baskets that never check out
OAT 019Account creationCreating many accounts for later misuseFake accounts farming welcome discounts

Stripe describes card testing as fraud "where someone tries to determine whether stolen card information is valid so that they can use it to make purchases", and lists the consequences for the shop: disputes when some attempts succeed, a higher decline rate that makes card issuers treat all your payments as riskier, fees and infrastructure strain32. Stripe also warns that "simple firewall rules or filters based on a single heuristic such as IP addresses are usually not sufficient" and recommends combining CAPTCHA, rate limits and limits on the payment form32.

One detail is worth knowing for a Solidus shop, because it changes the denial of inventory risk. Solidus does not reduce stock when something goes into a basket. Stock is taken when the order is finalised after checkout: Spree::Order#finalize calls finalize! on each shipment, which finalises the pending inventory units33. A bot that fills 1,000 baskets with side tables therefore cannot empty Wrenfield's stock on the default setup. It can still pollute the basket and abandonment figures, and a shop that adds stock reservation in the basket (some do for limited editions) brings the risk straight back.

Example: Wrenfield's unverified week

Callum classifies one full week, Monday 4 January to Sunday 10 January 2027, using all three methods plus the content delivery network's behaviour signals. The shop served 1,200,000 page and API requests (the figures are invented for this example and consistent with Wrenfield's 110,000 sessions a month).

ClassRequestsShare
Human browsers504,00042%
Verified assistant fetchers and agents108,0009%
Search and AI crawlers, verified252,00021%
Unverified bots336,00028%
Total1,200,000100%

The shares check: 504,000 ÷ 1,200,000 = 0.42, 108,000 ÷ 1,200,000 = 0.09, 252,000 ÷ 1,200,000 = 0.21, 336,000 ÷ 1,200,000 = 0.28.

He then breaks the 336,000 unverified requests down by what they did:

BehaviourOWASPRequests
Fetching every product page, prices onlyOAT 011205,000
Probing for known software weaknessesOAT 01452,000
Log in attempts with leaked passwordsOAT 00841,000
Adding to basket without checking outOAT 02123,000
Payment attempts with small amountsOAT 0011,900
Not classifiable13,100
Total336,000

The sum is 205,000 + 52,000 + 41,000 + 23,000 + 1,900 + 13,100 = 336,000. Within the 336,000, 38,600 requests claimed the name of a known crawler or assistant and failed both the address and the DNS check. The Saturday spike in the chart below is one scraper working through the whole catalogue twice.

Stacked bars for seven days, in thousands of requests. Human browsers fall from 78 thousand on Monday to 66 thousand on Saturday and 75 thousand on Sunday. Verified assistants and agents stay between 15 and 16 thousand a day. Verified crawlers stay between 34 and 38 thousand. Unverified bots range from 44 to 52 thousand on weekdays and peak at 58 thousand on Saturday because one scraper crawled the catalogue twice. The week totals 1.2 million requests: 42% human, 9% verified agents, 21% crawlers, 28% unverified bots. Tap or click to open full screen and move around

What each class costs, and what it brings

Counting requests is the start. The decision needs money.

Each class costs server time. In this example Wrenfield's hosting works out at £0.10 per 1,000 page and API requests (an invented figure, your own is your hosting bill divided by the requests it served). The unverified class also causes incidents. In the example week, the 1,900 small payment attempts were a card testing run on the £4.50 candle wick trimmer: 23 attempts went through and had to be refunded, 4 of those became disputes, and Callum spent three hours on it. With an assumed dispute fee of £20 and an internal cost of £60 an hour, both invented for the example:

Card testing cost itemCalculationCost
Refunded sales23 × £4.50£103.50
Dispute fees4 × £20£80.00
Developer time3 × £60£180.00
Total£363.50
ClassRequestsServer cost (requests ÷ 1,000 × £0.10)IncidentsWhat it brings
Human browsers504,000£50.40noneAbout 457 orders a week (1,980 a month ÷ 4.33)
Verified assistants and agents108,000£10.80noneAbout 14 agent orders a week (60 a month ÷ 4.33) and 381 assistant referred visits
Verified crawlers252,000£25.20noneSearch and AI search visibility
Unverified bots336,000£33.60£363.50Nothing

The total cost of the unverified class this week was £33.60 + £363.50 = £397.10. The striking thing is not the server bill. Unverified bots took 28% of the requests and cost £33.60 to serve, about what the verified crawlers cost. The money is in the incidents, and the incidents come from a handful of endpoints: the payment step, the log in form and the basket. That tells Callum where to be strict and where not to bother.

Bar chart of the cost in pounds of the week of 4 to 10 January 2027. Human browsers cost 50.40 pounds in server time, verified assistants and agents 10.80 pounds, verified crawlers 25.20 pounds, unverified bots 397.10 pounds, of which 33.60 pounds is server time and 363.50 pounds is one card testing run. Almost all of the cost of bad bots comes from incidents on the payment step, not from serving pages. Tap or click to open full screen and move around

Blocking good agents costs money too

The obvious reaction to the last table is to block everything automated that cannot prove itself. That has a price, and it is easy to miss because lost orders do not show up in any log.

Not every legitimate agent can prove itself today. Some run inside the user's own browser and look exactly like that browser. Some run in third party cloud browsers that do not sign. A strict rule, "challenge or block anything automated without a verified identity", catches them along with the scrapers. The question is not "block or allow" but "which mistake costs less", and that is an expected value calculation (see Foundations: expected value).

E[C]=N⋅pblock⋅v+I⋅ppass⋅c\mathbb{E}[C] = N \cdot p_{\text{block}} \cdot v + I \cdot p_{\text{pass}} \cdot c

Here E[C]\mathbb{E}[C] is the expected monthly cost of a policy, NN is the number of legitimate agent orders a month that arrive without any verifiable identity, pblockp_{\text{block}} is the share of those the policy stops, vv is the contribution one order leaves after product cost, VAT, delivery and fees, II is the expected number of bad bot incidents a month, ppassp_{\text{pass}} is the share of an incident's harm that gets through the policy, and cc is the cost of one incident at full strength.

Example: three policies for Wrenfield

The inputs, all invented for this example: of Wrenfield's 60 agent orders a month, 20 come from agents that cannot be verified, so N=20N = 20. An order of £72 leaves a contribution of 38%, so v=0.38×72=£27.36v = 0.38 \times 72 = £27.36. Card testing runs happen about once a month, so I=1I = 1, and one run at full strength costs c=£363.50c = £363.50 from the table above.

Policy A, strict. Every unverified automated visitor gets a challenge page on every request. It stops 70% of the unverifiable agents (pblock=0.70p_{\text{block}} = 0.70) and lets through 5% of the card testing harm (ppass=0.05p_{\text{pass}} = 0.05).

E[CA]=20×0.70×27.36+1×0.05×363.50=401.22\mathbb{E}[C_A] = 20 \times 0.70 \times 27.36 + 1 \times 0.05 \times 363.50 = 401.22

The first term is 14×27.36=383.0414 \times 27.36 = 383.04 pounds of lost contribution, the second 0.05×363.50=18.180.05 \times 363.50 = 18.18 pounds, so £401.22 a month.

Policy B, verify and throttle. Verified agents and crawlers get generous limits. Everyone else browses freely within a rate limit. The payment step, log in and basket get tight limits and the payment provider's own card testing protection. It stops 10% of unverifiable agents (pblock=0.10p_{\text{block}} = 0.10, usually ones that hammer the site) and lets 20% of the card testing harm through (ppass=0.20p_{\text{pass}} = 0.20).

E[CB]=20×0.10×27.36+1×0.20×363.50=127.42\mathbb{E}[C_B] = 20 \times 0.10 \times 27.36 + 1 \times 0.20 \times 363.50 = 127.42

That is 2×27.36=54.722 \times 27.36 = 54.72 pounds of lost contribution plus 0.20×363.50=72.700.20 \times 363.50 = 72.70 pounds, so £127.42 a month.

Policy C, allow everything. Nothing is blocked (pblock=0p_{\text{block}} = 0) and every incident lands in full (ppass=1p_{\text{pass}} = 1).

E[CC]=20×0×27.36+1×1×363.50=363.50\mathbb{E}[C_C] = 20 \times 0 \times 27.36 + 1 \times 1 \times 363.50 = 363.50

Here the first term is 00 and the second is the full 363.50363.50 pounds. The strict policy looks safest and is the most expensive of the three, because lost customers cost more than a well contained card testing run. The open policy is close behind. Policy B wins by being strict exactly where the harm happens and relaxed everywhere else. The figures are invented, but the shape holds for most small shops: the money is lost at a few endpoints, so that is where the strictness belongs.

Bot management products, described from their own documentation

You do not have to build all of this yourself. Content delivery networks and specialist vendors sell bot management. Two examples, described from their documentation as read on 23 November 2026:

  • Cloudflare Bot Management gives each request a bot score from 1 to 99, where 1 means Cloudflare is quite certain the request was automated and 99 that it came from a person, produced by heuristics, a machine learning model and JavaScript detections34. Granular scores are only available to Enterprise customers who bought Bot Management, while Pro plans and above see the groupings34. Its verified bot programme accepts Web Bot Auth, published IP lists or reverse DNS as proof of identity, and requires that the bot does not behave abusively, for example that it respects robots.txt22.
  • AWS WAF Bot Control, part of Amazon's web application firewall (WAF), has a common level, which labels bots that identify themselves and verifies desirable ones, and a targeted level, which uses browser interrogation, fingerprinting and behavioural heuristics against bots that do not identify themselves. It charges additional fees and supports Web Bot Auth from version 4.0 of its rule set24.

Both are probabilistic. AWS says in its own documentation that its classification methods "might not correctly identify or categorize all bot traffic in all cases"24. That is not a criticism, it is the nature of the problem, and it is why your own logs and your own rules on the critical endpoints still matter when you buy a product.

Example: what Callum buys and what he builds

Wrenfield already sits behind a content delivery network for images. Callum's split:

JobWhere it runsWhy there
Absorbing floods and obvious scrapersContent delivery networkCosts least to stop before it reaches the shop
Verifying Web Bot Auth and card network agentsContent delivery network where supported, the Ruby verifier as a fallbackAvoids each shop reimplementing cryptography, keeps working if the vendor lags the draft
Published IP lists and DNS checks for named crawlersThe shop, daily job plus cacheFree, simple, and the result goes into the shop's own logs
Rate limits on payment, log in, sign up and basketThe shop (Rack::Attack)Only the shop knows what a normal checkout looks like
Evidence: who did what, with which identityThe shop's own log tablesThe vendor's dashboard is not your record

Rules at the edge and inside Rails

The rules themselves are short. Two layers do most of the work: the web server in front of Rails (nginx in this example) and Rack::Attack, a Rack middleware that Rails applications use by default once the gem is installed35.

nginx first. Its limit_req_zone and limit_req directives limit request rates per key, and burst with nodelay allows short bursts without slowing them down36. It also logs the headers Callum needs as evidence. nginx exposes any request header as a variable with dashes turned into underscores, so Signature-Agent becomes $http_signature_agent, and log_format with escape=json writes a line a database can load directly37.

# /etc/nginx/conf.d/shop.conf (excerpt)
log_format agents escape=json
  '{"ts":"$time_iso8601","ip":"$remote_addr","method":"$request_method",'
  '"path":"$uri","status":$status,"ua":"$http_user_agent",'
  '"sig_agent":"$http_signature_agent","sig_input":"$http_signature_input"}';

# A blunt first line of defence per address; Rails applies the finer rules.
limit_req_zone $binary_remote_addr zone=per_ip:10m rate=10r/s;

server {
  server_name wrenfieldhome.example;
  access_log /var/log/nginx/agents.json agents;

  location / {
    limit_req zone=per_ip burst=40 nodelay;
    limit_req_status 429;
    proxy_pass http://rails_app;
  }
}

Then the finer rules in Rails. The Rack::Attack README shows that Rack::Attack::Request is a subclass of Rack::Request meant to be extended with helper methods, that a throttle takes a limit, a period in seconds and a block returning the key to count by, and that it answers 429 by default35. The paths come from the Solidus starter storefront, where the payment step is PATCH /checkout/update/payment, log in is POST /login, sign up is POST /signup and adding to the basket is POST /cart_line_items38.

# config/initializers/rack_attack.rb
class Rack::Attack::Request < ::Rack::Request
  def agent
    env["shop.agent"] ||= AgentSignature.verify(
      headers: {
        "signature-input" => get_header("HTTP_SIGNATURE_INPUT"),
        "signature"       => get_header("HTTP_SIGNATURE"),
        "signature-agent" => get_header("HTTP_SIGNATURE_AGENT")
      },
      authority: host, path: path, directory: AgentDirectory
    )
  end

  def verified_agent? = agent.outcome == :verified
end

# A signature that was checked and did not match is a forgery attempt.
Rack::Attack.blocklist("forged agent signature") do |req|
  req.agent.outcome == :invalid && req.agent.reason == "signature does not match"
end

# Verified agents: counted per agent, not per address, with a generous limit.
Rack::Attack.throttle("verified agents", limit: 600, period: 300) do |req|
  req.agent.agent_url if req.verified_agent?
end

# Everyone else: a limit no person browsing will ever reach.
Rack::Attack.throttle("browsing per ip", limit: 120, period: 300) do |req|
  req.ip unless req.verified_agent?
end

# The endpoints where the money is lost: tight, for everybody.
Rack::Attack.throttle("payment step per ip", limit: 5, period: 600) do |req|
  req.ip if req.patch? && req.path == "/checkout/update/payment"
end

Rack::Attack.throttle("logins per email", limit: 10, period: 1200) do |req|
  req.params["spree_user"]&.dig("email")&.to_s&.downcase&.strip if req.post? && req.path == "/login"
end

Rack::Attack.throttle("sign ups per ip", limit: 3, period: 3600) do |req|
  req.ip if req.post? && req.path == "/signup"
end

Rack::Attack.throttle("basket adds per ip", limit: 30, period: 600) do |req|
  req.ip if req.post? && req.path == "/cart_line_items"
end

Note what is not here: no rule blocks unverified requests as such. They browse within the limit, like a person would. The tight limits sit on the five actions where Wrenfield actually loses money, and they apply to verified agents too, because a verified agent can still carry a stolen card. The counters live in Rails.cache, which must be a shared store such as Redis for the limits to hold across several server processes. The README warns that an in memory store is largely ineffective35.

Example: the browsing limit worked through

Is 120 requests per 5 minutes per address safe for people and painful for scrapers? Work it out as a rate (see Foundations: ratios and rates).

d=r⋅t−Lr⋅td = \frac{r \cdot t - L}{r \cdot t}

Here dd is the share of a client's requests the throttle refuses, rr is the client's request rate per second, tt is the throttle period in seconds and LL is the limit per period.

  • The Saturday scraper ran at 3 requests a second. Over 300 seconds it wants 3 × 300 = 900 requests and gets 120, so d=(900−120)÷900=0.867d = (900 - 120) \div 900 = 0.867. It loses 86.7% of its requests and needs about 7.5 times as long, or many more addresses, which brings it into the content delivery network's flood rules.
  • A keen human customer opening a product, its images, the reviews and three related products takes about 12 page and API requests a minute, so 60 in 5 minutes. That is half the limit, so d=0d = 0.
  • A verified assistant comparing 40 products for its user sends perhaps 80 requests in a minute, 80 in the period, below its own limit of 600, so d=0d = 0, and because it is counted per agent rather than per address, an agent operator with many users is not punished for sharing addresses.

Your logs are your evidence

When something goes wrong, a dispute, a stock anomaly or a claim that "your shop blocked our agent", the record that settles it is your own log. A content delivery network dashboard shows aggregates for a limited time. Your table shows what happened to this order.

Log enough to reclassify later, because the methods will change: time, address, method, path, status, the User-Agent, the raw Signature-Agent and Signature-Input headers, and your verifier's outcome and reason. Then classify in the database, where you can rerun the rules when they improve.

-- PostgreSQL. request_logs is loaded from the nginx JSON log every hour;
-- sig_outcome is written by the Rails verifier, rdns_ok by the cached DNS job,
-- loaded_assets marks sessions that also fetched the page's images and styles.
WITH classified AS (
  SELECT
    r.*,
    CASE
      WHEN r.sig_outcome = 'verified' THEN 'verified_agent'
      WHEN r.user_agent ~* '(ChatGPT-User|Perplexity-User|Claude-User|Google-Agent)'
           AND EXISTS (SELECT 1 FROM bot_ip_ranges b
                       WHERE b.kind = 'assistant' AND r.ip <<= b.prefix)
        THEN 'verified_agent'
      WHEN r.user_agent ~* '(Googlebot|bingbot|OAI-SearchBot|GPTBot|PerplexityBot|ClaudeBot|Claude-SearchBot)'
           AND (r.rdns_ok OR EXISTS (SELECT 1 FROM bot_ip_ranges b
                                     WHERE b.kind = 'crawler' AND r.ip <<= b.prefix))
        THEN 'crawler'
      WHEN r.loaded_assets AND NOT r.rate_limited THEN 'human_browser'
      ELSE 'unverified_bot'
    END AS traffic_class
  FROM request_logs r
  WHERE r.ts >= timestamptz '2027-01-04 00:00 Europe/London'
    AND r.ts <  timestamptz '2027-01-11 00:00 Europe/London'
)
SELECT traffic_class,
       count(*) AS requests,
       round(100.0 * count(*) / sum(count(*)) OVER (), 1) AS share_pct
FROM classified
GROUP BY traffic_class
ORDER BY requests DESC;

For the example week it returns:

traffic_classrequestsshare_pct
human_browser50400042.0
unverified_bot33600028.0
crawler25200021.0
verified_agent1080009.0

Two honest caveats. "Human browser" here means "behaves like a browser a person is using", not proof of a person. Headless browsers can load assets too, which is why the content delivery network's signals are added where available. And the impostor count is the most useful figure in the table you did not ask for: add a column for "claimed a known bot name and failed every check", and you have a ready made blocklist that will never hit a real customer.

These logs also feed the analytics side. The data engineering chapter on cleaning test orders, bots, refunds and late data shows how bot activity distorts shop metrics, and a later chapter in this series covers measuring agent traffic and agent sales properly.

Example: personal data in Wrenfield's logs

An IP address in a log is personal data when the shop could identify the person behind it with information it can lawfully obtain: the Court of Justice of the European Union held this for dynamic IP addresses in the Breyer case in 201639, and the UK GDPR's recitals name internet protocol addresses among online identifiers40. So Wrenfield needs a lawful basis and a retention period for these logs.

The UK GDPR now says it outright. Since 5 February 2026, Article 6(11), inserted by the Data (Use and Access) Act 2025, lists "processing that is necessary for the purposes of ensuring the security of network and information systems" as an example of a legitimate interest41. Recital 49 has long said the same for processing "strictly necessary and proportionate" for network and information security40. The Information Commission (formerly the Information Commissioner's Office, ICO) explains in its guidance the three part test (purpose, necessity, balancing) Wrenfield still has to document42.

Callum's policy: full request logs kept for 30 days for security. After that, only the aggregated counts per class and day, plus the rows linked to an order, a dispute or an incident, which are kept with that record. This is general information, not legal advice. If your logs feed other purposes, such as marketing analysis, that needs its own basis.

One decision flow for every automated request

Put the pieces together and every request goes through the same short sequence. The order matters: the least costly checks first, the strictest rules only where the money is.

Tap or click to open full screen and move around

Example: four requests through the flow

  • The invented shopping agent from earlier asks for the side table. Valid signature, so it takes the agent policy and is counted against https://shopper.example. It is a product page, not a sensitive endpoint, so it is served and logged as "verified agent".
  • A request from Google's address range with Googlebot in the header, asking for a category page. No signature, known name, address confirmed by DNS. Crawler policy, served, logged as "crawler".
  • A request claiming ChatGPT-User from a rented server that is not in OpenAI's list. No signature, known name, address fails. Blocked as an impostor, with the claimed name logged. No real customer is ever behind such a request.
  • A request with an ordinary Chrome header from a home connection, posting to /checkout/update/payment for the sixth time in ten minutes. No signature, no bot name, so it takes the browsing path, then hits the payment step throttle and gets a 429. If it is a person mistyping a card number, five attempts are generous. If it is card testing, the run is over after five.

My view

My view: identity for agents is moving from "trust the label" to "check the signature", and the direction is right. Web Bot Auth is the first approach that lets a small shop recognise a specific agent without a contract with its operator, and the fact that OpenAI signs, Google is testing, the large content delivery networks verify and the card networks have built on it means it is not a niche experiment. But it is still a draft, and the biggest verifier still implements an older version of it. Do not build your whole policy on signatures yet.

For an independent shop on Rails and Solidus, the priorities are clear and none of them require waiting:

  1. Log the identity headers now, so you can reclassify history when the rules change.
  2. Verify the named crawlers and assistants against their published lists, daily. It is free and it removes the impostors, which are the easiest wins.
  3. Put tight limits on the five endpoints where money is lost, for every class of visitor.
  4. Let everything else browse within a generous limit. Blocking unknown automation wholesale will cost you agent customers you never see in any report.
  5. Accept Web Bot Auth signatures where your content delivery network verifies them, and keep a small verifier of your own, tested against the draft's vectors, so you are not dependent on one vendor's interpretation.

What I would not do: buy an expensive bot product before you have looked at a week of your own logs, block all AI user agents because of a headline, or treat "verified" as "trusted to pay". A signature tells you who is knocking. It never tells you whether to hand over the goods.

Conclusion

A request's name is a claim. Published address lists, forward confirmed reverse DNS and, increasingly, cryptographic signatures turn the claim into something a shop can check. Each proves something narrower than it seems: a network, a name, a key holder. None proves good intent.

So the shop's job is to sort visitors into humans, verified agents, verified crawlers and everything else, and then to spend its strictness where the money is: the payment step, log in, sign up and the basket. In Wrenfield's example week, unverified bots took 28% of the requests but nearly all of the cost came from one card testing run on one endpoint, and the strictest policy would have cost more in lost agent orders than it saved. Verify what can be verified, limit what cannot, keep the logs as your evidence, and revisit the rules every few months, because this part of the web is still being standardised while you read this.

If you want to know which of the bots on your shop are customers and which are costing you money, book the free workshop: we classify a week of your logs together, and the first two weeks of work are on me.

Sources

  1. 1.

    OpenAI, Overview of OpenAI crawlers, OpenAI developer documentation, checked 23 November 2026, https://developers.openai.com/api/docs/bots

  2. 2.

    Thales, Artificial intelligence fuels rise of hard to detect bots that now make up more than half of global internet traffic, according to the 2025 Imperva Bad Bot Report, press release, 15 April 2025, https://cpl.thalesgroup.com/about-us/newsroom/2025-imperva-bad-bot-report-ai-internet-traffic

  3. 3.

    Tim Chang, Bad Bot Report 2026: Bots in the agentic age, Imperva blog, 29 April 2026, https://www.imperva.com/blog/bad-bot-report-2026-bots-agentic-age/

  4. 4.

    Google, Google's user triggered fetchers, Google Search Central documentation, checked 23 November 2026, https://developers.google.com/search/docs/crawling-indexing/google-user-triggered-fetchers

  5. 5.

    Anthropic, Does Anthropic crawl data from the web, and how can site owners block the crawler?, Claude Help Center, checked 23 November 2026, https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler

  6. 6.

    Perplexity, Perplexity crawlers, Perplexity documentation, checked 23 November 2026, https://docs.perplexity.ai/guides/bots

  7. 7.

    Google, Verifying Googlebot and other Google crawlers, Google Search Central documentation, checked 23 November 2026, https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot

  8. 8.

    Google, Google's common crawlers (section Google Extended), Google Search Central documentation, checked 23 November 2026, https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers

  9. 9.

    OpenAI, ChatGPT agent allowlisting (now titled for the ChatGPT Work cloud browser), OpenAI Help Center, checked 23 November 2026, https://help.openai.com/en/articles/11845367-chatgpt-agent-allowlisting

  10. 10.

    M. Koster, G. Illyes, H. Zeller, L. Sassman, RFC 9309: Robots Exclusion Protocol, IETF, September 2022, https://www.rfc-editor.org/rfc/rfc9309

  11. 11.

    Reid Tatoris, Perplexity is using stealth, undeclared crawlers to evade website no crawl directives, Cloudflare blog, 4 August 2025, https://blog.cloudflare.com/perplexity-is-using-stealth-undeclared-crawlers-to-evade-website-no-crawl-directives/

  12. 12.

    Perplexity, Agents or bots? Making sense of AI on the open web, Perplexity blog, August 2025, https://www.perplexity.ai/hub/blog/agents-or-bots-making-sense-of-ai-on-the-open-web

  13. 13.

    Microsoft Bing, Bingbot IP ranges (JSON), checked 23 November 2026, https://www.bing.com/toolbox/bingbot.json

  14. 14.

    T. Meunier, S. Major, HTTP Message Signatures for automated traffic, draft-ietf-webbotauth-httpsig-protocol-01, IETF Internet Draft, 29 October 2026, https://datatracker.ietf.org/doc/draft-ietf-webbotauth-httpsig-protocol/ (RFC 9421 itself: A. Backman, J. Richer, M. Sporny, HTTP Message Signatures, February 2024, https://www.rfc-editor.org/rfc/rfc9421)

  15. 15.

    PostgreSQL Global Development Group, Network address functions and operators, PostgreSQL documentation, checked 23 November 2026, https://www.postgresql.org/docs/current/functions-net.html

  16. 16.

    OpenAI, ChatGPT User IP ranges (JSON, creation time 6 November 2026), checked 23 November 2026, https://openai.com/chatgpt-user.json

  17. 17.

    IETF, Web Bot Auth (webbotauth) working group, charter and milestones, IETF Datatracker, checked 23 November 2026, https://datatracker.ietf.org/wg/webbotauth/about/

  18. 18.

    IETF, draft-ietf-webbotauth-httpsig-protocol, document history, IETF Datatracker, checked 23 November 2026, https://datatracker.ietf.org/doc/draft-ietf-webbotauth-httpsig-protocol/

  19. 19.

    M. Jones, N. Sakimura, RFC 7638: JSON Web Key (JWK) Thumbprint, IETF, September 2015, https://www.rfc-editor.org/rfc/rfc7638

  20. 20.

    I. Liusvaara, RFC 8037: CFRG Elliptic Curve Diffie Hellman (ECDH) and Signatures in JSON Object Signing and Encryption (JOSE), Appendix A.3, IETF, January 2017, https://www.rfc-editor.org/rfc/rfc8037

  21. 21.

    OpenAI, HTTP message signatures directory for chatgpt.com, fetched 23 November 2026, https://chatgpt.com/.well-known/http-message-signatures-directory

  22. 22.

    Cloudflare, Signed agents and verified bots, Cloudflare Bots documentation, updated 12 November 2026, https://developers.cloudflare.com/bots/concepts/bot/signed-agents/

  23. 23.

    Cloudflare, Web Bot Auth, Cloudflare Bots documentation, updated 8 October 2026, https://developers.cloudflare.com/bots/reference/bot-verification/web-bot-auth/

  24. 24.

    Amazon Web Services, AWS WAF Bot Control, AWS WAF Developer Guide, checked 23 November 2026, https://docs.aws.amazon.com/waf/latest/developerguide/waf-bot-control.html

  25. 25.

    Cloudflare, Cloudflare collaborates with leading payments companies to secure and enable agentic commerce, press release, 14 October 2025, https://www.cloudflare.com/press/press-releases/2025/cloudflare-collaborates-with-leading-payments-companies-to-secure-and-enable-agentic-commerce/

  26. 26.

    S. Josefsson, J. Schaad, RFC 8410: Algorithm Identifiers for Ed25519, Ed448, X25519, and X448 for Use in the Internet X.509 Public Key Infrastructure, IETF, August 2018, https://www.rfc-editor.org/rfc/rfc8410

  27. 27.

    Ruby on Rails, ActiveSupport::Cache::Store#fetch (option skip_nil), Rails API documentation, checked 23 November 2026, https://api.rubyonrails.org/classes/ActiveSupport/Cache/Store.html#method-i-fetch

  28. 28.

    Cloudflare, Securing agentic commerce: helping AI agents transact with Visa and Mastercard, Cloudflare blog, 24 October 2025, https://blog.cloudflare.com/secure-agentic-commerce/

  29. 29.

    Visa, Trusted Agent Protocol, sample implementation and README, GitHub, repository created 10 October 2025, checked 23 November 2026, https://github.com/visa/trusted-agent-protocol

  30. 30.

    Visa, tap agent sample, agent_app.py (signature parameters: tag agent browser auth, expiry eight minutes), GitHub, checked 23 November 2026, https://github.com/visa/trusted-agent-protocol/blob/main/tap-agent/agent_app.py

  31. 31.

    OWASP, Automated Threat Handbook, version 1.30, 17 March 2026, OWASP Automated Threats to Web Applications project, https://raw.githubusercontent.com/OWASP/www-project-automated-threats-to-web-applications/master/assets/files/EN/automated-threat-handbook-EN-1v30.pdf

  32. 32.

    Stripe, Protect yourself from card testing, Stripe documentation, checked 23 November 2026, https://docs.stripe.com/disputes/prevention/card-testing

  33. 33.

    Solidus, core/app/models/spree/order.rb (method finalize) and core/app/models/spree/shipment.rb (finalize_pending_inventory_units), solidusio/solidus on GitHub, checked 23 November 2026, https://github.com/solidusio/solidus/blob/main/core/app/models/spree/order.rb

  34. 34.

    Cloudflare, Bot scores, Cloudflare Bots documentation, checked 23 November 2026, https://developers.cloudflare.com/bots/concepts/bot-score/

  35. 35.

    rack attack contributors, Rack::Attack README, version 6.8, GitHub, checked 23 November 2026, https://github.com/rack/rack-attack

  36. 36.

    nginx, Module ngx_http_limit_req_module, nginx documentation, checked 23 November 2026, https://nginx.org/en/docs/http/ngx_http_limit_req_module.html

  37. 37.

    nginx, Module ngx_http_log_module (log_format, escape parameter), nginx documentation, checked 23 November 2026, https://nginx.org/en/docs/http/ngx_http_log_module.html

  38. 38.

    Solidus, solidus_starter_frontend, templates/config/routes/storefront.rb, GitHub, checked 23 November 2026, https://github.com/solidusio/solidus_starter_frontend/blob/main/templates/config/routes/storefront.rb

  39. 39.

    Court of Justice of the European Union, Case C 582/14, Patrick Breyer v Bundesrepublik Deutschland, judgment of 19 October 2016, https://curia.europa.eu/juris/liste.jsf?num=C-582/14

  40. 40.

    UK GDPR, recitals 30 and 49, legislation.gov.uk, checked 23 November 2026, https://www.legislation.gov.uk/eur/2016/679/introduction

  41. 41.

    UK GDPR, Article 6 (paragraph 11 inserted by the Data (Use and Access) Act 2025, in force 5 February 2026), legislation.gov.uk, checked 23 November 2026, https://www.legislation.gov.uk/eur/2016/679/article/6

  42. 42.

    Information Commissioner's Office, Legitimate interests, UK GDPR guidance and resources, checked 23 November 2026, https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/lawful-basis/legitimate-interests/

Shelter

I’m running the London Marathon for Shelter. Sunday 25 April 2027

My personal fundraiser. Shelter, the National Campaign for Homeless People Limited, registered charity 263710 (England and Wales) and SC002327 (Scotland), registered with the Fundraising Regulator.