You open your access log and see GPTBot, ClaudeBot or Googlebot. Is it real?
The user agent can't tell you. Anyone can type "Googlebot" into a request header. The IP address is the part a stranger can't fake, so each operator publishes a way to check it.
I'm the founder of PerfBee, an SEO platform. This post is the manual check, with commands and a script you can run today. It needs nothing from me or my product.
One data point on why it matters: Duane Forrester reported in Search Engine Journal (25 June 2026) that 81.8% of the "AI assistant" requests checked on one new site over two weeks were spoofed, and called that a baseline for that one site. Treat it as a reason to check your own log.
Step 1: Why can't I trust the user agent in my log?
The user agent is a text field the client fills in. Your server writes down whatever it receives.
A scraper that wants to get past a rule like "allow Googlebot" sends Googlebot in that field. The request line looks the same as a real one.
Two sample lines, both from addresses reserved for documentation (RFC 5737), so neither belongs to any operator. The user agent strings are shortened for this post.
# access.log of your-site.com, combined log format 192.0.2.10 - - [24/Nov/2026:09:12:01 +0000] "GET / HTTP/1.1" 200 5120 "-" "Mozilla/5.0 (compatible; GPTBot/1.1)" 198.51.100.7 - - [24/Nov/2026:09:12:04 +0000] "GET / HTTP/1.1" 200 5120 "-" "Mozilla/5.0 (compatible; Googlebot/2.1)" Both lines claim a crawler. Neither proves anything. The check starts from the first field, the IP.
Step 2: How do I verify Googlebot and Bingbot with reverse DNS?
Look up the hostname of the IP (reverse DNS). Check that the hostname ends with the operator's domain. Then look up that hostname and confirm it returns the same IP (forward DNS). Both Google's and Bing's pages ask for the forward step too: a reverse record alone is set by whoever controls the IP.
Googlebot. The hostname must end with googlebot.com, google.com or googleusercontent.com. Source: Verify requests from Google crawlers and fetchers.
Bingbot. The hostname must end with search.msn.com. Source: the Bing Webmaster blog post How to verify that Bingbot is Bingbot (31 August 2012). It says to do a reverse lookup on the IP from your logs, then a forward lookup on that name to confirm it resolves back to the same IP.
Replace IP with the address from your log:
# 1. Reverse DNS: IP to hostname host IP # or dig +short -x IP # 2. Forward DNS: take the hostname from step 1 and look it up host HOSTNAME # or dig +short HOSTNAME # add AAAA for an IPv6 address Read the result like this:
- The reverse lookup returns no name: not proved.
- The name does not end with the operator's domain: not proved.
- The forward lookup does not return your IP: not proved.
- All three pass: proved.
This works for Googlebot and Bingbot. OpenAI, Anthropic and Perplexity publish IP lists instead, so use step 3 for them.
Step 3: How do I fetch each operator's published IP list?
Each operator publishes its crawler ranges as JSON. Fetch the live file every time you check. Don't paste ranges into a config, because the operators change them.
# Google (CIDR format). Source: the Google page linked in step 2 for f in common-crawlers special-crawlers user-triggered-fetchers user-triggered-fetchers-google user-triggered-agents; do curl -sSL "https://developers.google.com/static/crawling/ipranges/$f.json" -o "google-$f.json" done # Bing. Source: Bing Webmaster blog, May 2022 curl -sSL https://www.bing.com/toolbox/bingbot.json -o bingbot.json # OpenAI. Source: https://developers.openai.com/api/docs/bots for f in searchbot gptbot chatgpt-user; do curl -sSL "https://openai.com/$f.json" -o "openai-$f.json" done # Anthropic. Source: https://support.claude.com/en/articles/8896518 curl -sSL https://claude.com/crawling/bots.json -o anthropic-bots.json # Perplexity. Source: https://docs.perplexity.ai/guides/bots for f in perplexitybot perplexity-user; do curl -sSL "https://www.perplexity.ai/$f.json" -o "perplexity-$f.json" done Bing's own blog post (May 2022, on paywall and subscription content) says you can identify Bingbot by checking the IP against the public list, and links the file above. The DNS check from step 2 also still works for Bing.
Four things the operators say that change how you use these lists:
- OpenAI:
ChatGPT-Useracts when a user asks for something, so robots.txt may not apply to it. OpenAI also says that after a robots.txt update it can take about 24 hours for its search systems to adjust. - Anthropic: one file covers all of its crawlers. Anthropic warns that blocking by IP "may not work correctly or persistently guarantee an opt-out". The opt-out it states is robots.txt.
- Perplexity:
Perplexity-Usergenerally ignores robots.txt, because a user asked for the fetch. Use the live lists, not hard-coded IPs. - Google: the files are split by kind of fetcher. Googlebot is in the common crawlers file.
Step 4: How do I check a whole access log with a script?
This Python 3 script uses only the standard library. It reads a log in combined format, keeps lines whose user agent contains a crawler name, downloads the operator's list, and prints proved or not proved for each crawler line. A line whose first field is not an IP address is printed as skipped.
The script collects every string in the JSON that parses as a network. That way it does not depend on the exact key names, which differ between operators.
#!/usr/bin/env python3 """Check crawler visits in an access log against each operator's published IP list. Usage: python3 verify_crawlers.py access.log """ import gzip import ipaddress import json import re import sys import urllib.request GOOGLE = "https://developers.google.com/static/crawling/ipranges/" ANTHROPIC = "https://claude.com/crawling/bots.json" # Crawler name in the user agent -> operator list(s). # Check each operator's page (linked in the post) before you rely on a mapping. BOTS = { "googlebot": [GOOGLE + "common-crawlers.json"], "bingbot": ["https://www.bing.com/toolbox/bingbot.json"], "gptbot": ["https://openai.com/gptbot.json"], "oai-searchbot": ["https://openai.com/searchbot.json"], "chatgpt-user": ["https://openai.com/chatgpt-user.json"], "claudebot": [ANTHROPIC], "claude-searchbot": [ANTHROPIC], "claude-user": [ANTHROPIC], "perplexitybot": ["https://www.perplexity.ai/perplexitybot.json"], "perplexity-user": ["https://www.perplexity.ai/perplexity-user.json"], } # Combined log format: the IP is the first field, the user agent is the last quoted field. LINE = re.compile(r'^(\S+) .*"([^"]*)"\s*$') _cache = {} def collect_networks(node, out): """Walk any JSON value and keep every string that parses as a CIDR network.""" if isinstance(node, dict): for value in node.values(): collect_networks(value, out) elif isinstance(node, list): for value in node: collect_networks(value, out) elif isinstance(node, str): try: out.append(ipaddress.ip_network(node, strict=False)) except ValueError: pass def load_list(url): if url not in _cache: request = urllib.request.Request(url, headers={"User-Agent": "verify-crawlers-script"}) with urllib.request.urlopen(request, timeout=30) as response: data = json.load(response) networks = [] collect_networks(data, networks) _cache[url] = networks return _cache[url] def open_log(path): if path.endswith(".gz"): return gzip.open(path, "rt", errors="replace") return open(path, "rt", errors="replace") def main(path): proved = not_proved = 0 with open_log(path) as log: for raw in log: match = LINE.match(raw) if not match: continue ip_text, user_agent = match.groups() agent = user_agent.lower() name = next((n for n in BOTS if n in agent), None) if name is None: continue try: ip = ipaddress.ip_address(ip_text) except ValueError: print(f"skipped {ip_text} (not an IP address)") continue networks = [n for url in BOTS[name] for n in load_list(url)] ok = any(ip in network for network in networks) print(f"{'proved' if ok else 'not proved':<11}{ip_text:<18}{name}") if ok: proved += 1 else: not_proved += 1 print(f"\n{proved} proved, {not_proved} not proved") if __name__ == "__main__": if len(sys.argv) != 2: sys.exit("Usage: python3 verify_crawlers.py access.log") main(sys.argv[1]) Save the two sample lines from step 1 as access.log and run it:
python3 verify_crawlers.py access.log Both addresses are reserved for documentation, so neither can be on any operator's list. Both lines come out as not proved:
not proved 192.0.2.10 gptbot not proved 198.51.100.7 googlebot 0 proved, 2 not proved Run it on your real log and the live lists decide.
Two limits to know. The script reads the IP from the first field, so if your log format puts the client IP elsewhere, change the regex. And if an operator's list cannot be fetched, the script stops with a network error instead of printing results, so fix that before you trust a run.
Step 5: Which AI names in robots.txt can't be verified from a log?
Google-Extended and Applebot-Extended never appear in your log. Neither one makes requests, so no line in your log can carry them.
-
Google-Extendedis a token you put in robots.txt. Google's page says it has no separate HTTP request user agent string and does not affect inclusion in Google Search. Source: Google's common crawlers page. -
Applebot-Extendedis a robots.txt token too. Apple's page says it does not crawl webpages and is only used to decide how the data Applebot crawled may be used. Source: About Applebot.
If you search your log for either name and find a match, that line cannot be a real Google or Apple request, because neither token makes any.
Step 6: What changes when my site is behind a CDN?
Your server's log then records the CDN's address for each request, unless the CDN passes the visitor's IP to your origin and your log format writes it.
The check only works on the real client IP. If the first field of your log is a CDN address, every crawler line fails, real or fake. You have two ways out: use the CDN's own log, which carries the visitor's address, or follow your CDN's documentation on passing the client IP to your origin and write that field into the log format. Fix the log first, then run the script.
Where does PerfBee Bot Tracker fit in?
If you'd rather not run this yourself, PerfBee Bot Tracker does this check on an uploaded server log. It tracks eleven crawlers, Googlebot, Bingbot, the AI crawlers of OpenAI, Anthropic and Perplexity, and Google-Agent, and shows what they did per day, bot and page. A visit counts as a bot's only when its IP is on the list the operator publishes. Such a visit is marked proved. A non-match is marked fake, and a visit is not proved when the list was too old to trust. Bot Tracker also connects to Cloudflare, but that connection counts by user agent only and is never shown as verified. The guide on perfbee.com goes through the same checks operator by operator.
Questions or corrections on the commands are welcome in the comments.

