Skip to content
IP CheckerDashboard

Crawler verification

Is that Googlebot real? Verify a crawler IP with DNS and IP ranges

Confirm a Googlebot, Bingbot or GPTBot user agent from the source IP: reverse DNS, forward confirmation, published ranges, and a Node script to run.

Three checks on example source IP 203.0.113.50. Row 1 maps it to a crawl-star.googlebot.com name, with the dot before the domain bracketed. Row 2 maps the name back to 203.0.113.50, which must equal the source IP. Row 3 places the address inside a highlighted prefix on a bar of published ranges.

Reverse lookup, forward confirmation and a range match are separate checks on one source address. The diagram uses a documentation address and shows the method, not a measurement of a real crawler.

Check the claim with reverse and forward DNS

A user-agent string is text the client chooses, so a request that says Googlebot proves nothing by itself. The evidence is the source IP address. For Googlebot and Bingbot, look up the address’s reverse DNS name (its PTR record), check that the name ends with the operator’s domain, then resolve that name forward and confirm it returns the original address. Google documents this as its manual check, and a 2012 Bing post describes the same two lookups with a different domain.

These are the three steps for 66.249.66.1, the address Google’s own page uses as its first Googlebot example, run on 1 December 2026.

Reverse lookup, suffix check, forward lookup
# 1. Reverse lookup
host 66.249.66.1
# 1.66.249.66.in-addr.arpa domain name pointer crawl-66-249-66-1.googlebot.com.

# 2. Read the name: it must end in .googlebot.com

# 3. Forward lookup: it must return the address you started with
host crawl-66-249-66-1.googlebot.com
# crawl-66-249-66-1.googlebot.com has address 66.249.66.1

Bingbot follows the same pattern with another domain. The Bing post says the reverse name should end in search.msn.com. On the same day, 157.55.39.1 returned msnbot-157-55-39-1.search.msn.com and 40.77.167.1 returned msnbot-40-77-167-1.search.msn.com, and each name resolved forward to the address it came from.

The same lookup fails at the first step for an address that has no PTR record. A documentation address, 203.0.113.50, is reserved for examples, and dig -x 203.0.113.50 also reports status NXDOMAIN.

A source IP with no reverse name
host 203.0.113.50
# Host 50.113.0.203.in-addr.arpa. not found: 3(NXDOMAIN)

Why the forward lookup is not optional

The PTR record is published by whoever runs the reverse zone for the address, and that is not the crawler’s operator when the address belongs to someone else. Anyone who runs the reverse zone for their own address block can publish any text there, including a Googlebot hostname. A reverse lookup alone proves nothing. The forward lookup is the check the attacker cannot satisfy, because the name belongs to the operator’s zone and resolves to the operator’s address. If 203.0.113.50 claimed the PTR crawl-66-249-66-1.googlebot.com, the forward lookup would return 66.249.66.1, and the addresses would not match.

A documentation address cannot carry a PTR, so this case was simulated. In a copy of the script below with its reverse lookup replaced by that hostname, the check rejected the address with the forward result shown in the script section. The claim is a logical consequence of how the check works, not an observation of a real spoofer.

Match the suffix at a dot boundary

The suffix test is where hand-written filters go wrong. A substring test accepts any name that contains the domain. A bare endswith test accepts a name that ends in the same letters but belongs to a different registrant. Match the domain preceded by a dot. The first name in the table is a real crawler hostname. The other two are constructed strings for this test and were not looked up.

Three hostname tests on one real name and two constructed names (Node 23.7.0)
Hostnameincludes("googlebot.com")endsWith("googlebot.com")Dot-boundary test
crawl-66-249-66-1.googlebot.comtruetruetrue
crawl-203-0-113-50.googlebot.com.attacker.example (constructed)truefalsefalse
crawl-203-0-113-50.evilgooglebot.com (constructed)truetruefalse
The dot-boundary test
const suffix = "googlebot.com";
const ok = (host) => host.toLowerCase().replace(/\.$/, "").endsWith(`.${suffix}`);

Google’s manual steps tell you to check for googlebot.com, google.com or googleusercontent.com, and those three domains cover the three categories in Google’s table, not Googlebot alone. Its mask table gives common crawlers such as Googlebot crawl-*.googlebot.com or geo-crawl-*.geo.googlebot.com, and gives google.com and gae.googleusercontent.com names to special-case crawlers and user-triggered fetchers. To confirm Googlebot itself, accept googlebot.com only. That narrower rule is this article’s recommendation and does not come from Google’s page.

When DNS cannot answer, match the published ranges

Reverse DNS only works when the operator publishes PTR records. OpenAI publishes IP ranges for GPTBot at openai.com/gptbot.json, and its crawler page does not describe a reverse DNS check. On 1 December 2026 We looked up one address in each of the 18 IPv4 prefixes in that file, the network address plus two (132.196.86.2 for 132.196.86.0/24), and none of the 18 had a PTR record. For GPTBot the range file was the only check I could run.

The GPTBot range file and one reverse lookup
curl -sS https://openai.com/gptbot.json | jq '.prefixes | length'
# 18

host 132.196.86.2
# Host 2.86.196.132.in-addr.arpa. not found: 3(NXDOMAIN)

OpenAI’s page describes GPTBot as the crawler for content that may be used to train its models, and says that disallowing it signals the content should not be used for that training. It lists separate range files for OAI-SearchBot and ChatGPT-User, and says ChatGPT-User acts on a user’s request, so robots.txt rules may not apply to it. Both of those files returned HTTP 200 on 1 December 2026. I did not test their contents.

Google’s Googlebot ranges are in common-crawlers.json. The older googlebot.json address still answers, but it now redirects, and so does the old URL of the verification page. Update any script or runbook that still points at them.

The old Googlebot range URL redirects
curl -sSI https://developers.google.com/static/search/apis/ipranges/googlebot.json | grep -iE '^(HTTP|location)'
# HTTP/2 301
# location: /static/crawling/ipranges/common-crawlers.json

curl -sSI https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot | grep -iE '^(HTTP|location)'
# HTTP/2 301
# location: /crawling/docs/crawlers-fetchers/verify-google-requests

Microsoft serves Bingbot’s ranges at bing.com/toolbox/bingbot.json, which listed 29 prefixes on the same date. We looked up one address in each prefix, and 27 had a msnbot-…search.msn.com PTR. The other two, 139.217.52.2 and 40.77.139.2, had none. That sample does not show whether Bing crawls from those two addresses. It is a reason not to make DNS the only test for Bing when the range file is available.

Treat each range file as data that changes. Google’s file carried a Last-Modified date of 27 November 2026. Bing’s file reported a creationTime of 2024-01-03 but a Last-Modified header of 9 November 2026, so a creationTime field is a poor freshness signal. Fetch the file on a schedule, cache it, and keep the DNS check for the crawlers that support it.

Run both checks with one script

This Node script takes an IP address and a claimed crawler. It downloads the operator’s range file, tests CIDR membership, and for Googlebot and Bingbot also runs the reverse, suffix and forward steps. It reports VERIFIED when either check passes and prints which one did. If the range file cannot be downloaded, the DNS check still runs, and a run that then has no passing check reports INCONCLUSIVE instead of NOT VERIFIED. The exit codes are 0 for verified, 1 for not verified, and 2 for a usage error or an inconclusive run. It was tested on Node 23.7.0, uses the built-in fetch, and needs no packages.

verify-crawler.mjs
// Usage: node verify-crawler.mjs <ip> googlebot|bingbot|gptbot   (tested on Node 23.7.0; uses built-in fetch, no dependencies)
// Fetches the range file on every run. In production, cache it and refresh it on a schedule.
import { BlockList, isIP } from "node:net";
import { reverse, resolve4, resolve6 } from "node:dns/promises";

const CRAWLERS = {
  googlebot: {
    ranges: "https://developers.google.com/static/crawling/ipranges/common-crawlers.json",
    suffixes: ["googlebot.com"], // also matches geo.googlebot.com; other Google fetchers use other domains
  },
  bingbot: { ranges: "https://www.bing.com/toolbox/bingbot.json", suffixes: ["search.msn.com"] },
  gptbot: { ranges: "https://openai.com/gptbot.json", suffixes: [] }, // no PTR to check
};

const [ip, claim] = process.argv.slice(2);
const version = isIP(ip ?? "");
if (!version || !CRAWLERS[claim]) {
  console.error("usage: node verify-crawler.mjs <ip> googlebot|bingbot|gptbot");
  process.exit(2);
}
const { ranges, suffixes } = CRAWLERS[claim];
const family = (v) => (v === 6 ? "ipv6" : "ipv4");

async function publishedPrefix() {
  try {
    return await findPrefix();
  } catch (error) {
    return { cidr: null, error: error.message }; // a failed download is not a failed check
  }
}

async function findPrefix() {
  const res = await fetch(ranges, { signal: AbortSignal.timeout(10_000) });
  if (!res.ok) throw new Error(`${ranges} returned ${res.status}`);
  const { creationTime, prefixes } = await res.json();
  for (const p of prefixes) {
    const cidr = p.ipv4Prefix ?? p.ipv6Prefix;
    if (!cidr) continue;
    const [base, length] = cidr.split("/");
    const list = new BlockList();
    list.addSubnet(base, Number(length), family(isIP(base)));
    if (list.check(ip, family(version))) return { cidr, creationTime };
  }
  return { cidr: null, creationTime };
}

// Dot boundary: "x.googlebot.com" matches, "x.googlebot.com.attacker.example" and "xgooglebot.com" do not.
const hasSuffix = (host) => suffixes.some((s) => host.toLowerCase().replace(/\.$/, "").endsWith(`.${s}`));

async function forwardConfirmedReverseDns() {
  let names = [];
  try { names = await reverse(ip); } catch { /* NXDOMAIN or no PTR */ }
  let result = { ok: false, host: names[0], why: names.length ? "PTR suffix not allowed" : "no PTR record" };
  for (const host of names.filter(hasSuffix)) {
    const forward = [...(await resolve4(host).catch(() => [])), ...(await resolve6(host).catch(() => []))];
    const same = new BlockList();
    same.addAddress(ip, family(version));
    if (forward.some((a) => same.check(a, family(isIP(a))))) {
      return { ok: true, host, why: "forward lookup returned the same address" };
    }
    result = { ok: false, host, why: `forward lookup returned ${forward.join(", ") || "nothing"}` };
  }
  return result;
}

const { cidr, creationTime, error } = await publishedPrefix();
console.log(`claim     ${claim}`);
console.log(`ip        ${ip}`);
console.log(error
  ? `ranges    unavailable (${error})`
  : `ranges    ${cidr ? `in ${cidr}` : "not in any prefix"} (file creationTime ${creationTime})`);
let dnsOk = false;
if (suffixes.length) {
  const dns = await forwardConfirmedReverseDns();
  dnsOk = dns.ok;
  console.log(`ptr       ${dns.host ?? "-"}`);
  console.log(`dns check ${dns.ok ? "pass" : "fail"}: ${dns.why}`);
}
const verified = Boolean(cidr) || dnsOk;
const inconclusive = !verified && Boolean(error); // exit codes: 0 verified, 1 not verified, 2 usage or inconclusive
console.log(`verdict   ${verified ? "VERIFIED" : inconclusive ? "INCONCLUSIVE" : "NOT VERIFIED"}`);
process.exit(verified ? 0 : inconclusive ? 2 : 1);

These runs are real output from 1 December 2026, with a real crawler address for each claim. The Googlebot and Bingbot addresses pass both checks. GPTBot has no DNS check, so it passes on the range alone.

Real crawler addresses
$ node verify-crawler.mjs 66.249.66.1 googlebot
claim     googlebot
ip        66.249.66.1
ranges    in 66.249.66.0/27 (file creationTime 2026-11-27T15:45:56.000000)
ptr       crawl-66-249-66-1.googlebot.com
dns check pass: forward lookup returned the same address
verdict   VERIFIED
exit=0

$ node verify-crawler.mjs 157.55.39.1 bingbot
claim     bingbot
ip        157.55.39.1
ranges    in 157.55.39.0/24 (file creationTime 2024-01-03T10:00:00.121331)
ptr       msnbot-157-55-39-1.search.msn.com
dns check pass: forward lookup returned the same address
verdict   VERIFIED
exit=0

$ node verify-crawler.mjs 132.196.86.2 gptbot
claim     gptbot
ip        132.196.86.2
ranges    in 132.196.86.0/24 (file creationTime 2026-09-22T02:00:07.000000)
verdict   VERIFIED
exit=0

Google’s file also lists IPv6 prefixes. The address 2001:4860:4801:10::1, from the 2001:4860:4801:10::/64 prefix, passed both checks as well.

The next runs are claims that should fail. The first uses the documentation address from earlier. The second claims Bingbot for Googlebot’s address, which fails because the PTR suffix is wrong and the address is not in Bing’s file.

Claims the evidence does not support
$ node verify-crawler.mjs 203.0.113.50 googlebot
claim     googlebot
ip        203.0.113.50
ranges    not in any prefix (file creationTime 2026-11-27T15:45:56.000000)
ptr       -
dns check fail: no PTR record
verdict   NOT VERIFIED
exit=1

$ node verify-crawler.mjs 66.249.66.1 bingbot
claim     bingbot
ip        66.249.66.1
ranges    not in any prefix (file creationTime 2024-01-03T10:00:00.121331)
ptr       crawl-66-249-66-1.googlebot.com
dns check fail: PTR suffix not allowed
verdict   NOT VERIFIED
exit=1

$ node verify-crawler.mjs 203.0.113.50 gptbot
claim     gptbot
ip        203.0.113.50
ranges    not in any prefix (file creationTime 2026-09-22T02:00:07.000000)
verdict   NOT VERIFIED
exit=1

Two further runs used a copy of the script in which the reverse lookup returns a fixed hostname, because a documentation address cannot carry a PTR. The published script was not changed. A PTR copied from Googlebot’s real hostname fails at the forward step, and a lookalike with an extra suffix fails the dot-boundary test.

Simulated PTR for 203.0.113.50 (reverse lookup stubbed)
# reverse lookup replaced with crawl-66-249-66-1.googlebot.com
claim     googlebot
ip        203.0.113.50
ranges    not in any prefix (file creationTime 2026-11-27T15:45:56.000000)
ptr       crawl-66-249-66-1.googlebot.com
dns check fail: forward lookup returned 66.249.66.1
verdict   NOT VERIFIED

# reverse lookup replaced with crawl-203-0-113-50.googlebot.com.attacker.example
claim     googlebot
ip        203.0.113.50
ranges    not in any prefix (file creationTime 2026-11-27T15:45:56.000000)
ptr       crawl-203-0-113-50.googlebot.com.attacker.example
dns check fail: PTR suffix not allowed
verdict   NOT VERIFIED

Decide per crawler, and know what a pass proves

The table lists the check this article runs for each crawler, taken from the sources and requests above. Where a vendor page does not describe a check, the cell says so.

Verification method per crawler as of 1 December 2026
CrawlerPTR suffixRange fileCheck this article uses
Googlebot (Google common crawlers)crawl-*.googlebot.com or geo-crawl-*.geo.googlebot.comdevelopers.google.com/static/crawling/ipranges/common-crawlers.jsonEither forward-confirmed reverse DNS or a range match. Google documents both.
Other Google fetchers (special-case, user-triggered)google.com names, or gae.googleusercontent.com names, per Google’s mask tablespecial-crawlers.json, user-triggered-fetchers-google.json and user-triggered-fetchers.json in the same folder (HTTP 200 only; contents not tested)The same two methods, but do not treat these as Googlebot.
Bingbotmsnbot-*.search.msn.com observed on 157.55.39.1 and 40.77.167.1; the 2012 Bing post says the name ends in search.msn.comwww.bing.com/toolbox/bingbot.jsonForward-confirmed reverse DNS, as the 2012 post describes, plus a range check. I could not read Bing’s current help pages.
GPTBotNone: 0 of 18 sampled addresses had a PTRopenai.com/gptbot.jsonRange match. OpenAI’s page describes no DNS check.
OAI-SearchBot and ChatGPT-UserNot testedopenai.com/searchbot.json and openai.com/chatgpt-user.json (listed by OpenAI; contents not tested)Range match against the file for that crawler.

When you are triaging one address by hand, a lookup gives you step 1 and a sanity signal in one request. The IPCheckHQ lookup returns the PTR name and the ASN for an address. This is the API response for 66.249.66.1, trimmed to those fields.

Reverse DNS and ASN from the API
curl -sS https://ipcheckhq.com/api/v1/ip/66.249.66.1 \
  | jq '{ip, reverse_dns, asn: .network.asn, asn_name: .network.asn_name}'
# {
#   "ip": "66.249.66.1",
#   "reverse_dns": "crawl-66-249-66-1.googlebot.com",
#   "asn": 15169,
#   "asn_name": "Google LLC"
# }

The reverse_dns value is a plain PTR lookup. The API does not forward-confirm it and does not verify crawlers, so the forward step or a range match still has to happen. The ASN is a corroborating signal, not a verdict. To read an ASN from a terminal yourself, see how to find the ASN of an IP address with whois, DNS and an API. The GPTBot address 132.196.86.2 came back with no reverse name and AS8075, Microsoft Corporation, so the ASN would not have told you it belongs to OpenAI’s crawler list. A hosting network also contains customers, which means an ASN alone cannot separate a crawler from a renter. The lookup endpoint allowed 30 requests per minute per client IP when we tested it, so use the script above for bulk log checks.

All of this assumes you test the right address. Behind a CDN or load balancer, your log may show the proxy’s address, and the check then runs on the wrong IP: it fails for a genuine crawler and says nothing about the request. Resolve the client address first, as described in the X-Forwarded-For guide, and then verify it.

A workable policy follows from the result. Verified crawlers are allowed, still within your own rate limits. A request that claims a crawler and fails the check is an unidentified client, so rate-limit or block it under your usual abuse rules. That policy is this article’s suggestion, not a vendor recommendation.