cd /news/ai-crawlers/anyone-can-call-themselves-ccbot-her… · home › topics › ai-crawlers › article
[ARTICLE · art-181663] src=dev.to ↗ pub= topic=ai-crawlers verified=true sentiment=· neutral

Anyone can call themselves CCBot. Here's the 30-line check that tells the real one apart

A developer analyzing their site's logs found that of 610 requests claiming to be Common Crawl's CCBot, only 358 were genuine, while 252 came from 44 unrelated addresses probing for sensitive files like /.bash_profile and /docker-compose.yaml. After Common Crawl confirmed CCBot impersonation is common and pointed to reverse DNS verification, the developer published a roughly 30-line Python script combining published IP-range checks with forward-confirmed reverse DNS, which correctly flagged all 252 fakes and none of the real crawlers. The method also works for Google's published crawler ranges with only the URL and DNS suffix changed.

recommendation

When gating access or analytics on crawler identity, check the operator's published IP ranges plus FCrDNS, and cache both since the JSON and DNS answers change rarely.

more in playbook: Securing agents and AI tools
by read2 min views1 publishedDec 4, 2026

A user agent is a string. Anyone can type it.

On my site, 610 requests have said "I'm CCBot", Common Crawl's crawler, since the logs began (counted 3 December 2026). Only 358 of them actually were. The other 252 came from 44 addresses that have nothing to do with Common Crawl, and they weren't crawling: they were asking for /.bash_profile, /docker-compose.yaml, /proc/self/cmdline. That's a scanner wearing a crawler's badge, hoping you whitelisted the badge.

If your analytics, your firewall rules or your "AI bots visited us" chart trust the user agent, you're counting those 252 as Common Crawl.

I wrote to them on 2 December with the numbers. An engineer answered the same day:

"Sadly, many instances of CCBot impersonation have been observed for quite some time. Yes, you can use RDNS to verify whether a request comes from the real CCBot. This is covered in our FAQ and also on the CCBot page."

So there are two official methods:

crawl.commoncrawl.org, and that name resolves back to the same IP. Reverse DNS alone isn't enough: whoever owns an IP can point its reverse record at any name they like. The forward lookup is what closes the loop. On my logs both methods give the same verdict, request by request: 358 real, 252 not. Not one of the fakes passes either check.

Google publishes its crawler ranges in the same JSON shape (prefixes → ipv4Prefix / ipv6Prefix), so the same function works for both; only the URL and the DNS suffix change.

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

def in_list(ip, url):
    """Is the IP inside one of the prefixes the operator publishes?"""
    data = json.load(urllib.request.urlopen(url, timeout=15))
    addr = ipaddress.ip_address(ip)
    for p in data["prefixes"]:
        net = p.get("ipv4Prefix") or p.get("ipv6Prefix")
        if addr in ipaddress.ip_network(net):
            return True
    return False

def fcrdns(ip, suffixes):
    """Forward-confirmed reverse DNS: IP -> name -> same IP."""
    try:
        name = socket.gethostbyaddr(ip)[0]
    except OSError:
        return False, None
    if not name.endswith(suffixes):
        return False, name
    try:
        forward = {a[4][0] for a in socket.getaddrinfo(name, None)}
    except OSError:
        return False, name
    return ip in forward, name

if __name__ == "__main__":
    ip = sys.argv[1]
    print("in ccbot.json:", in_list(ip, "https://index.commoncrawl.org/ccbot.json"))
    print("FCrDNS:", fcrdns(ip, (".crawl.commoncrawl.org",)))
bash
$ python verify_crawler.py 18.97.14.84
in ccbot.json: True
FCrDNS: (True, '18-97-14-84.crawl.commoncrawl.org')

$ python verify_crawler.py 8.8.8.8
in ccbot.json: False
FCrDNS: (False, 'dns.google')

In production, cache the JSON (it changes rarely) and the DNS answers. Don't do two lookups on every hit.

The whole thing (verified vs unconfirmed crawlers on one small site, monthly, CC BY 4.0) is on Zenodo: https://doi.org/10.5281/zenodo.24628027. Live numbers: https://stats.lake8.dev. It's one site, so read it as a sample, not a census.

How do you verify bots on your side, list, reverse DNS, or not at all?

── more in #ai-crawlers 4 stories · sorted by recency
── more on @common crawl 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/anyone-can-call-them…] indexed:0 read:2min 2026-12-04 · —