Google-Agent user agent and verification
Google-Agent is Google’s agent agent. It browses on a person’s behalf to complete a task, and identifies itself with a signed request.
What user agent does Google-Agent send?
CrawlClick identifies Google-Agent by this token in theUser-Agent header, matched case-insensitively anywhere in the string:
google-agent
A user agent is a claim, not proof. Anyone can send the string, so a match on its own puts a request in the lowest trust tier. Use the token to decide which check to run, never as the check itself. See theverification tiers.
How do I check a request really came from Google-Agent?
Google publishes 3 ways to verify it: Web Bot Auth signature, published IP ranges, forward-confirmed reverse DNS. Use the strongest one available.
Signature. Google-Agent signs requests with Web Bot Auth (RFC 9421 HTTP message signatures, Ed25519). Its public keys are published at https://agent.bot.goog/.well-known/http-message-signatures-directory. The Web Bot Auth guide shows the full verification with code. A valid signature is the strongest proof there is.
Published ranges. Google lists the addresses Google-Agent crawls from athttps://developers.google.com/static/crawling/ipranges/user-triggered-agents.json. The file uses the shape Google’s list established: a prefixes array whose entries carry eitheripv4Prefix or ipv6Prefix. Load it on a timer, then test the connecting address — the TCP peer, or the address your CDN reports, never a client-supplied X-Forwarded-For. IPv4-mapped IPv6 addresses must be unmapped first.
Code: check the published ranges
import { BlockList, isIPv6 } from 'node:net';
// Fetch once and refresh on a timer (hourly is plenty); never on the request path.
async function loadRanges(url) {
const doc = await (await fetch(url)).json();
const list = new BlockList();
for (const p of doc.prefixes ?? []) {
const cidr = p.ipv4Prefix ?? p.ipv6Prefix;
if (!cidr) continue;
const [net, bits] = cidr.includes('/') ? cidr.split('/') : [cidr, isIPv6(cidr) ? '128' : '32'];
list.addSubnet(net, Number(bits), isIPv6(net) ? 'ipv6' : 'ipv4');
}
return list;
}
const ranges = await loadRanges('https://developers.google.com/static/crawling/ipranges/user-triggered-agents.json');
/** True only when the user agent claims Google-Agent AND the address is in the vendor's list. */
export function isGoogleAgent(userAgent, ip) {
if (!/google-agent/i.test(userAgent)) return false;
return ranges.check(ip, isIPv6(ip) ? 'ipv6' : 'ipv4');
}import ipaddress, json, re, urllib.request
def load_ranges(url):
with urllib.request.urlopen(url, timeout=10) as r:
doc = json.load(r)
nets = []
for p in doc.get("prefixes", []):
cidr = p.get("ipv4Prefix") or p.get("ipv6Prefix")
if cidr:
nets.append(ipaddress.ip_network(cidr, strict=False))
return nets
RANGES = load_ranges("https://developers.google.com/static/crawling/ipranges/user-triggered-agents.json") # refresh on a schedule, not per request
UA = re.compile(r"google-agent", re.I)
def is_google_agent(user_agent, ip):
"""True only when the UA claims Google-Agent and the address is in the vendor's list."""
if not UA.search(user_agent or ""):
return False
addr = ipaddress.ip_address(ip)
if addr.version == 6 and addr.ipv4_mapped:
addr = addr.ipv4_mapped
return any(addr in net for net in RANGES)package crawlers
import (
"encoding/json"
"net/http"
"net/netip"
"regexp"
"strings"
)
type published struct {
Prefixes []struct {
V4 string `json:"ipv4Prefix"`
V6 string `json:"ipv6Prefix"`
} `json:"prefixes"`
}
// LoadRanges fetches the vendor list. Call it at start-up and on a ticker.
func LoadRanges(url string) ([]netip.Prefix, error) {
resp, err := http.Get(url)
if err != nil {
return nil, err
}
defer resp.Body.Close()
var doc published
if err := json.NewDecoder(resp.Body).Decode(&doc); err != nil {
return nil, err
}
var out []netip.Prefix
for _, p := range doc.Prefixes {
s := p.V4 + p.V6
if s == "" {
continue
}
if !strings.Contains(s, "/") {
if a, err := netip.ParseAddr(s); err == nil {
out = append(out, netip.PrefixFrom(a, a.BitLen()))
}
continue
}
if pf, err := netip.ParsePrefix(s); err == nil {
out = append(out, pf)
}
}
return out, nil
}
var ua = regexp.MustCompile(`(?i)google-agent`)
// IsGoogleAgent reports whether a request claiming Google-Agent comes from a listed address.
// ranges comes from LoadRanges("https://developers.google.com/static/crawling/ipranges/user-triggered-agents.json").
func IsGoogleAgent(ranges []netip.Prefix, userAgent, ip string) bool {
if !ua.MatchString(userAgent) {
return false
}
addr, err := netip.ParseAddr(ip)
if err != nil {
return false
}
addr = addr.Unmap()
for _, p := range ranges {
if p.Contains(addr) {
return true
}
}
return false
}Reverse DNS. Google’s crawler hosts resolve to names ending in.gae.googleusercontent.com or .google.com. Resolve the address to a name, check the suffix, then resolve that name forward and require the original address back. The forward step is what makes it proof: anyone can set a reverse record on an address they own.
Code: forward-confirmed reverse DNS
import { promises as dns } from 'node:dns';
const SUFFIXES = ['.gae.googleusercontent.com', '.google.com'];
// Reverse-resolve, check the suffix, then resolve the name forward and require the same address.
export async function fcrdns(ip) {
const names = await dns.reverse(ip).catch(() => []);
for (const name of names) {
const host = name.toLowerCase().replace(/\.$/, '');
if (!SUFFIXES.some((s) => host.endsWith(s))) continue;
const forward = await dns.lookup(host, { all: true }).catch(() => []);
if (forward.some((r) => r.address === ip)) return host;
}
return null;
}import socket
SUFFIXES = (".gae.googleusercontent.com", ".google.com")
def fcrdns(ip):
"""Return the verified hostname, or None. Blocking: run it off the request path."""
try:
host = socket.gethostbyaddr(ip)[0].lower().rstrip(".")
except OSError:
return None
if not host.endswith(SUFFIXES):
return None
try:
addrs = {info[4][0] for info in socket.getaddrinfo(host, None)}
except OSError:
return None
return host if ip in addrs else NoneWhat does CrawlClick do with Google-Agent requests?
- Edge routing: the publisher edge does not route Google-Agent today. Its user-agent pattern does not include this agent’s token, so these requests reach your origin untouched.
- Verification: CrawlClick can verify it, by published IP ranges. Production does not use reverse DNS.
- Ads: ad-eligible. A request is billed only when it was verified, and the page carried a disclosed placement.
Registry entry
This is the entry as crawlclick registry prints it, last reviewed 2026-11-23. The full list is at/crawlers.json; every field is explained in the registry guide. The vendor’s own documentation is at https://developers.google.com/crawling/docs/crawlers-fetchers/google-user-triggered-fetchers.
{
"ad_eligible": true,
"docs": "https://developers.google.com/crawling/docs/crawlers-fetchers/google-user-triggered-fetchers",
"id": "google-agent",
"ip_range_source": "https://developers.google.com/static/crawling/ipranges/user-triggered-agents.json",
"key_directory": "https://agent.bot.goog/.well-known/http-message-signatures-directory",
"phase": "agentic",
"product": "Google-Agent",
"rdns_suffixes": [
".gae.googleusercontent.com",
".google.com"
],
"signature_agent": "https://agent.bot.goog",
"supports_signature": true,
"ua_match": [
"google-agent"
],
"vendor": "Google"
}