Guide · bots

Verify Googlebot, Bingbot and GPTBot

The user agent says Googlebot. Is it? How to verify search engine and AI crawlers with their official IP lists or reverse DNS.

Updated October 1, 2026 · 2 min read

Most major crawlers publish their IP ranges as JSON. Check whether the request IP is in the list of the bot it claims to be:

CrawlerList
Googlebotgooglebot IP ranges
Bingbotbingbot IP ranges
GPTBotGPTBot IP addresses
OAI-SearchBotOAI-SearchBot IP addresses
ChatGPT-UserChatGPT-User IP addresses
PerplexityBotPerplexityBot IP addresses
ApplebotApplebot IP ranges
import ipaddress, json, urllib.request

def load(url):
    data = json.load(urllib.request.urlopen(url))
    return [ipaddress.ip_network(p.get("ipv4Prefix") or p.get("ipv6Prefix")) for p in data["prefixes"]]

GOOGLEBOT = load("https://developers.google.com/static/search/apis/ipranges/googlebot.json")

def is_googlebot(ip: str) -> bool:
    addr = ipaddress.ip_address(ip)
    return any(addr in net for net in GOOGLEBOT)

Refresh the lists daily; providers add ranges without notice.

Method 2: reverse DNS + forward DNS

Google and Bing also document DNS verification:

  1. Reverse lookup the IP: host 66.249.66.1 → crawl-66-249-66-1.googlebot.com
  2. Check that the name ends in googlebot.com, google.com or googleusercontent.com (Bing: search.msn.com).
  3. Forward lookup the name and make sure it resolves back to the same IP.

DNS verification is slower (two lookups per new IP), so cache the result.

Method 3: let your CDN do it

Cloudflare marks verified bots (cf.client.bot in WAF rules) and lets you allow or challenge them in one rule. Other CDNs offer similar bot management features.

Blocking AI crawlers

Training crawlers like GPTBot respect robots.txt:

User-agent: GPTBot
Disallow: /

Search and user-triggered agents (OAI-SearchBot, ChatGPT-User, Perplexity-User) are separate user agents. Block them only if you do not want to appear in AI search answers.

Frequently asked questions

Can the Googlebot user agent be faked?

Yes. Any HTTP client can send 'Googlebot' as its user agent. Scrapers do this to get around rate limits and bot protection that lets search engines through.

Which crawlers publish their IP addresses?

Google (Googlebot, special-case crawlers, user-triggered fetchers), Bing, Apple, DuckDuckGo, OpenAI (GPTBot, OAI-SearchBot, ChatGPT-User) and Perplexity. The IP range pages show all current lists.

IP geolocation API

Get this data in your app

ipbase returns location, ISP, ASN, time zone and security flags (VPN, proxy, Tor, data center) for any IPv4 or IPv6 address, up to 100 addresses per request.

150 free requests every month. No credit card required.

GET https://api.ipbase.com/v2/info?ip=1.1.1.1

{
  "data": {
    "ip": "1.1.1.1",
    "type": "v4",
    "connection": {
      "asn": 13335,
      "organization": "APNIC and Cloudflare DNS Resolver project",
      "isp": "Cloudflare, Inc",
      "range": "1.1.1.0/24"
    },
    "location": {
      "country": { "alpha2": "AU", "name": "Australia" },
      "zip": "4000"
    },
    "security": { "is_vpn": false, "is_tor": false, "threat_score": 0 }
  }
}

Keep reading

Start using the IP Geolocation API for free today!

Get 150 requests / month for free