Guide · AI agents

How to Tell Real AI Crawlers from Fake Bot Traffic

A request that says it’s GPTBot might be GPTBot, or a scraper borrowing its name. A visit that looks like Chrome might be a person, or a crawler that doesn’t want to be recognized. This guide shows how to tell them apart with checks you can run yourself, what Google Analytics and Cloudflare can and can’t do, and what to do about each kind of bot.

Updated · 13 min read

Five kinds of bot traffic

“Bot traffic” covers very different things, and each needs a different response. Before you block or count anything, work out which kind you’re looking at:

Kinds of bot traffic and how to recognize them
Kind What it looks like How you can tell
Verifiable crawlers Names itself (GPTBot, ClaudeBot, Googlebot) and its operator publishes a way to check IP list, reverse DNS or a cryptographic signature confirms it
Declared but unverifiable Names itself, but its operator publishes no IP list or signature You can’t, beyond trusting the name. Count it separately
Impostors Borrows a well-known crawler’s name, often to get past rules that allow it The name says one operator, the IP address says someone else
Undeclared crawlers Pretends to be an ordinary browser such as Chrome Only by behavior and network: datacenter addresses, no images or styles loaded, unusual speed
Automated browsers Runs a real browser, so it executes JavaScript and shows up in analytics tools Patterns in analytics: one location, direct traffic, near-zero engagement

The first three can be sorted mechanically, with the checks below. The last two need judgment, and the tools that see the most traffic, like your CDN, are best placed to catch them.

Why the user agent proves nothing

Every request carries a user agent string, and crawlers put their name in it: GPTBot/1.4, ClaudeBot/1.0, Googlebot/2.1. But the client chooses that string, and anyone can send any value. A scraper that knows you allow GPTBot in your firewall or robots.txt has every reason to call itself GPTBot.

So treat a user agent as a claim. To accept it, you need evidence from something the client can’t easily fake: where the request comes from, or a cryptographic signature.

Check 1: Published IP lists

Most large operators now publish the IP ranges their crawlers use, as JSON files you can download and match against:

Published crawler IP lists
Operator Lists
OpenAIopenai.com/gptbot.json, openai.com/searchbot.json, openai.com/chatgpt-user.json
Anthropicclaude.com/crawling/bots.json (one list for ClaudeBot, Claude-SearchBot and Claude-User)
Perplexitywww.perplexity.com/perplexitybot.json, www.perplexity.com/perplexity-user.json
Googlecommon-crawlers.json, special-crawlers.json, user-triggered-fetchers.json and others under developers.google.com/static/crawling/ipranges/
Microsoftwww.bing.com/toolbox/bingbot.json

A request is genuine only if its user agent names the agent and its IP address falls inside that agent’s list. Match each agent to its own list: an address from OpenAI’s ChatGPT-User list doesn’t verify a request claiming to be GPTBot.

Two practical points:

  • Refresh the lists daily. Operators add ranges as they grow. A stale list turns new genuine addresses into false “fakes”.
  • If a list can’t be loaded, say so. Mark those requests “not checked” rather than fake, or one failed download will flag all of an agent’s traffic as impostors.

Check 2: Reverse DNS

Search engine crawlers can also be verified through DNS, which works even where you don’t have the latest list. Look up the hostname for the IP address, check its domain, then look the hostname up and confirm it points back to the same address. The second step matters: anyone who controls an IP block can set its reverse DNS to say googlebot.com, but they can’t make Google’s DNS point that name back at them.

host 66.249.66.1
# 1.66.249.66.in-addr.arpa domain name pointer crawl-66-249-66-1.googlebot.com.

host crawl-66-249-66-1.googlebot.com
# crawl-66-249-66-1.googlebot.com has address 66.249.66.1

Genuine hostnames end in googlebot.com, google.com or googleusercontent.com for Google, search.msn.com for Bing and applebot.apple.com for Apple. OpenAI, Anthropic and Perplexity don’t document DNS verification, so use their IP lists instead.

Check 3: Web Bot Auth signatures

IP lists work for crawlers run from an operator’s own servers, but agents increasingly run in cloud browsers on shared infrastructure. For these, operators are adopting Web Bot Auth: each request is signed with a private key using HTTP Message Signatures (RFC 9421), and the operator publishes the matching public keys. A signed request carries three headers:

  • Signature-Agent: who claims to have sent it, for example https://chatgpt.com
  • Signature-Input: which parts of the request were signed, with which key and until when
  • Signature: the signature itself

The verifier fetches the public keys from the operator’s key directory, such as chatgpt.com/.well-known/http-message-signatures-directory for ChatGPT’s agent, and checks the signature. A valid one proves the request came from the key holder, whatever its IP address. A copied signature can’t be reused for long, because each one covers the request and expires.

Checking signatures yourself takes careful code, and the protocol is still an internet draft. In practice, let your CDN do it: Cloudflare validates Web Bot Auth signatures and, since July 2026, treats correctly signed agents as verified bots.

Classify a whole log at once

This Python script combines the first two checks. Point it at an access log in the standard “combined” format used by Nginx and Apache, and it labels every request that claims to be a known crawler as verified, FAKE or unverifiable, then lists the addresses sending the most fakes.

import collections, ipaddress, json, re, socket, sys, urllib.request

# Agents with a published IP list: (user agent token, list URL)
IP_LISTS = [
    ("GPTBot", "https://openai.com/gptbot.json"),
    ("OAI-SearchBot", "https://openai.com/searchbot.json"),
    ("ChatGPT-User", "https://openai.com/chatgpt-user.json"),
    ("ClaudeBot", "https://claude.com/crawling/bots.json"),
    ("Claude-SearchBot", "https://claude.com/crawling/bots.json"),
    ("Claude-User", "https://claude.com/crawling/bots.json"),
    ("PerplexityBot", "https://www.perplexity.com/perplexitybot.json"),
    ("Perplexity-User", "https://www.perplexity.com/perplexity-user.json"),
]

# Agents verified by reverse DNS: (token, hostname suffixes)
DNS_CHECKS = [
    ("Googlebot", (".googlebot.com", ".google.com", ".googleusercontent.com")),
    ("bingbot", (".search.msn.com",)),
    ("Applebot", (".applebot.apple.com",)),
]

# Agents that publish no way to verify them
UNVERIFIABLE = ["meta-externalagent", "meta-externalfetcher", "Bytespider", "CCBot", "Amazonbot"]

_lists = {}
def networks(url):
    if url not in _lists:
        request = urllib.request.Request(url, headers={"User-Agent": "ai-agent-check/1.0"})
        data = json.load(urllib.request.urlopen(request, timeout=10))
        _lists[url] = [ipaddress.ip_network(v) for p in data.get("prefixes", []) for v in p.values()
                       if re.match(r"^[0-9a-fA-F.:]+/\d+$", str(v))]
    return _lists[url]

_dns = {}
def dns_verified(ip, suffixes):
    if ip not in _dns:
        try:
            host = socket.gethostbyaddr(ip)[0]
            _dns[ip] = host if ip in socket.gethostbyname_ex(host)[2] else None
        except OSError:
            _dns[ip] = None
    return bool(_dns[ip]) and _dns[ip].endswith(suffixes)

def classify(user_agent, ip):
    for token, url in IP_LISTS:
        if token in user_agent:
            return token, "verified" if any(ipaddress.ip_address(ip) in n for n in networks(url)) else "FAKE"
    for token, suffixes in DNS_CHECKS:
        if token in user_agent:
            return token, "verified" if dns_verified(ip, suffixes) else "FAKE"
    for token in UNVERIFIABLE:
        if token in user_agent:
            return token, "unverifiable"
    return None, None

counts = collections.Counter()
fake_ips = collections.Counter()
for line in open(sys.argv[1], errors="replace"):
    parts = line.split('"')
    if len(parts) < 6:
        continue
    ip, user_agent = line.split(" ", 1)[0], parts[5]
    agent, status = classify(user_agent, ip)
    if agent:
        counts[(agent, status)] += 1
        if status == "FAKE":
            fake_ips[(ip, agent)] += 1

for (agent, status), n in sorted(counts.items()):
    print(f"{agent:20} {status:13} {n}")
print("\nTop fake sources:")
for (ip, agent), n in fake_ips.most_common(10):
    print(f"{ip:40} claims {agent:16} {n} requests")

Run it with the log file as its argument. The numbers below are an example:

python3 classify_agents.py access.log

ClaudeBot            verified      1840
GPTBot               FAKE          312
GPTBot               verified      2215
Googlebot            verified      5120
meta-externalagent   unverifiable  904

Top fake sources:
203.0.113.7                              claims GPTBot           298 requests

Run it on a log from behind your CDN if you have one: if your origin server sees the CDN’s addresses instead of the visitor’s, configure it to log the real client IP first (for example from the CF-Connecting-IP header on Cloudflare), or every request will look fake. Look up who owns the top fake addresses with whois before you block them. A cloud provider’s address block is a common source; a range belonging to your own monitoring service is not one to block.

Spot crawlers that pretend to be browsers

The hardest bots to find don’t claim to be bots at all. In August 2025 Cloudflare reported that, after an AI company’s declared crawler was blocked, requests continued from a crawler using a generic Chrome-on-macOS user agent, from IP addresses outside the company’s published ranges and across several networks. The company disputed Cloudflare’s findings, but the technique is common, and no user agent check will catch it.

Look at behavior instead. A real browser loads a page’s images, stylesheets and scripts; most crawlers fetch only the HTML. This finds addresses that requested at least 50 pages and no assets:

awk -F'"' '{split($1, a, " "); split($2, r, " "); ip = a[1]
  if (r[2] ~ /\.(css|js|png|jpe?g|gif|webp|svg|ico|woff2?)(\?|$)/) assets[ip]++; else pages[ip]++}
  END {for (ip in pages) if (pages[ip] >= 50 && !assets[ip]) print pages[ip], ip}' access.log \
  | sort -rn | head -20

Other signals that point to an undeclared crawler:

  • Datacenter addresses with browser user agents. People browse from home and mobile networks, not from cloud providers.
  • Speed and regularity no person could manage: dozens of pages a minute, evenly spaced.
  • Requests for paths your robots.txt disallows, or for every page in your sitemap in order.
  • Many addresses with identical behavior, rotating when one is blocked.

No single signal is proof. Content delivery networks cache assets, privacy-focused browsers block some of them, and corporate users browse through cloud proxies. Combine several signals before deciding, and prefer a challenge over a block when you’re unsure, so that a real person can still get through.

What Google Analytics can and can’t tell you

Many questions about fake bot traffic start in Google Analytics 4, so it helps to know exactly what it sees.

  • It doesn’t see most crawlers. GA4 records a visit when its tag runs JavaScript in a browser. Genuine AI crawlers and most impostors download your HTML without running scripts, so they never reach GA4. Use the checks above on server or CDN logs to see them.
  • It already removes known bots. GA4 excludes traffic from known bots and spiders automatically, using Google research and the IAB’s International Spiders and Bots List. You can’t turn this off, and you can’t see how much it removed.
  • What gets through is automated browsers. Bots that run a real browser execute the tag like a person would, and aren’t on any known-bots list.

Since late 2025, many site owners have reported sudden spikes of this kind: large numbers of direct sessions from one or two places, often Lanzhou in China or Singapore, with engagement close to zero. Signs that a spike is automated rather than real interest:

  • It is concentrated in one channel (usually Direct), one city or country, and often one device and browser version.
  • Engagement rate and average engagement time are near zero, with one page per session.
  • It doesn’t match your server or CDN logs’ human traffic, or your sales and signups.

To keep it out of your decisions, compare or exclude it with a segment in Explorations, or a comparison in standard reports, built on the location, channel and engagement pattern. Be careful with data filters: GA4 offers them only for internal traffic, developer traffic and web hostnames, and Google states that once a filter is applied “the effect on the data is permanent.” The lasting fix is to stop the bots before the page loads, at your CDN or firewall.

Using Cloudflare to verify and block

If your site is behind Cloudflare, it can do the verification for you, across all of your traffic and before the request reaches your server.

  • Verified bots. Cloudflare keeps a directory of bots it has confirmed are transparent about who they are, verified by published IP lists, reverse DNS or Web Bot Auth signatures. You can look any bot up in the Cloudflare Radar bots directory.
  • Rule fields. In WAF custom rules, cf.client.bot is true for requests from known good bots, and cf.verified_bot_category gives the verified bot’s category, such as “AI Crawler” or “AI Assistant”.
  • AI Crawl Control and the managed AI crawler rule let you allow or block AI crawlers by name. Cloudflare says it adds signatures for undeclared crawlers it identifies to that managed rule, which is available on its free plan too.
  • Bot Management, a paid add-on, adds a bot score and TLS fingerprints to rules, which help catch automated browsers and undeclared crawlers that no user agent check will find.

A custom rule that blocks impostors claiming to be well-known crawlers looks like this:

(http.user_agent contains "GPTBot"
  or http.user_agent contains "ClaudeBot"
  or http.user_agent contains "Googlebot"
  or http.user_agent contains "bingbot")
and not cf.client.bot

Set its action to Block, or Managed Challenge to start. Before you add an agent to the list, check in the Radar bots directory that Cloudflare currently verifies it. If it doesn’t, this rule would block the genuine agent too. Then watch the rule’s matches for a few days in Security Events before relying on it.

What to do with each kind

Recommended response by kind of bot
Kind Count it? Typical response
Verifiable crawlersYes, as that agentAllow or disallow per agent in robots.txt, by purpose: training, search, or fetching for a person
Declared but unverifiableYes, labeled unverifiableUse robots.txt; rate-limit if they put load on your server
ImpostorsNo, report separatelyBlock at your firewall or CDN; robots.txt won’t stop them
Undeclared crawlersNoChallenge or block by network and behavior
Automated browsersNo, exclude from human reportsSegment them out in analytics; challenge at the edge

Whatever you decide, keep impostors out of your AI crawler numbers. Counting a scraper as GPTBot makes OpenAI look like your heaviest reader and hides who is really copying your pages.

What Metrics Hive checks, and what it doesn’t

Metrics Hive’s AI agent analytics automates the first check:

  • Requests from agents claiming to be from OpenAI, Anthropic or Perplexity are checked against their published IP lists, refreshed daily. Genuine ones are counted; impostors are reported separately and never counted.
  • The Fake agents report lists the addresses sending the most fake requests, the agents each one claimed to be, when it was seen and the pages it asked for, with a link to look up who owns the address.
  • Agents whose operator publishes no list show verification as “Not possible”. If a list isn’t loaded, or hasn’t been refreshed in the last seven days, requests show as “Not checked yet” instead of being marked fake.
  • The IP address is used only for the check. It is kept only for fake requests, to show where they come from.

It doesn’t verify Web Bot Auth signatures or check search engine crawlers by reverse DNS, and like any tool that relies on the user agent, it can’t recognize crawlers that pretend to be browsers. For those, use your CDN’s bot detection alongside it.

To see how many people AI assistants send you, as opposed to how many bots they send, read our guide to tracking AI crawlers and AI assistant referrals.

Frequently asked questions

How do I know if GPTBot or ClaudeBot traffic is real?
Check the IP address of each request against the list its operator publishes: openai.com/gptbot.json for GPTBot and claude.com/crawling/bots.json for Anthropic’s agents. A request whose user agent says GPTBot but whose address is outside that list is not from OpenAI.
How do I verify Googlebot?
Run a reverse DNS lookup on the IP address, check that the hostname ends in googlebot.com, google.com or googleusercontent.com, then run a forward lookup on that hostname and confirm it returns the same IP. Google also publishes its crawler IP ranges as JSON files you can match against.
Does Google Analytics filter out bots?
GA4 automatically excludes traffic from known bots and spiders, using Google research and the IAB’s International Spiders and Bots List. You can’t turn this off or see how much was excluded. Most AI crawlers never appear in GA4 anyway, because they don’t run JavaScript; the bots you do see in GA4 are ones that run a real browser.
Why is GA4 showing a spike of direct traffic from China or Singapore?
Since late 2025 many site owners have reported sudden direct-traffic spikes from places like Lanzhou and Singapore with almost no engagement. These have the hallmarks of automated browsers rather than people. Compare the spike with your server or CDN logs, isolate it with a segment rather than a permanent filter, and stop it at your CDN or firewall if it is distorting your data.
Can AI crawlers pretend to be normal browsers?
Yes. In August 2025 Cloudflare reported an AI company’s crawler using a generic Chrome on macOS user agent and IP addresses outside the company’s published ranges after its declared crawler was blocked; the company disputed the findings. Crawlers like this can only be found by behavior and network signals, not by the user agent.
Does robots.txt stop fake bots?
No. robots.txt is a request that well-behaved crawlers follow. Impostors and undeclared crawlers ignore it. To stop them, block or challenge them at your server, CDN or firewall.

Sources

Checked against these sources on 13 November, 2026. AI companies add and rename agents often, so check their documentation for the latest details.

See Every Visitor, Human and AI

Try any plan free for 7 days and keep your current analytics running alongside while you compare.