# How to Verify AI Crawlers Like GPTBot and ClaudeBot

> Source: <https://www.vincentschmalbach.com/how-to-verify-ai-crawler-traffic-instead-of-trusting-its-user-agent/>
> Published: 2026-11-25 12:15:05+00:00

**Recommendation:** Verify AI crawler traffic by comparing logged IP addresses against OpenAI's and Anthropic's published JSON lists rather than trusting user agent strings, and check for CDN-masked addresses first.
More in the playbook "Securing agents and AI tools": <https://wpnews.pro/playbooks/agent-security>

### BigQuery SQL for Search Console Image and Video Exports

When you report page-level results from Google Search Console’s Image and Video tabs, you query searchdata_url_impression and filter search_type to image or…

Maybe you've found visits from GPTBot or ClaudeBot in your website's log, and you want to know if they came from OpenAI and Anthropic. GPTBot and ClaudeBot are AI crawlers. A crawler is a program that visits websites on its own and downloads their pages. GPTBot belongs to OpenAI, the company behind ChatGPT. ClaudeBot belongs to Anthropic, the company behind Claude.

The crawler's name doesn't prove where a visit came from, because any program can send any name. To verify a visit, you look at its IP address. That's the address of the computer the visit came from, like 20.171.207.5. OpenAI and Anthropic publish lists of the IP addresses that their crawlers use. If the address of a visit is on the company's list for that crawler, the visit came from that company.

Each time a browser or a crawler asks your website for a page, that's called a request. Every request comes with a user agent, a short text that says which program sent it. OpenAI's crawler GPTBot, for example, sends this one:

```
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot
```

Your server writes each request into a file called the access log, together with the user agent and the IP address. The user agent is how you find possible crawler visits in the log. But Common Crawl, which runs a crawler called CCBot, [says it knows of other crawlers](https://commoncrawl.org/ccbot) that pretend to be CCBot. The IP address is harder to fake, because it comes from the network connection and not from text that the program writes.

So the check has two parts. First, you make sure that your log shows the crawler's IP address. Then you compare that address with the company's list. You have to be careful with the first part if your site uses a CDN like Cloudflare. A CDN, or content delivery network, is a service that gets the requests for your site first and passes them on to your server.

If the address is on the list, you know who sent the request. But you still don't know if the page was indexed. Indexed means that a search engine added the page to the collection of pages that it can show. And you don't know if an AI assistant used the page in an answer.

Each company in the table publishes the IP addresses of its crawlers. Most of them put the addresses in a JSON file. JSON is a text format that programs can read. Some of them offer a DNS lookup as a second way to check. With a DNS lookup, you find the name that belongs to an IP address. That name is called the host name.

| I checked this in each company's documentation on November 16, 2026. |  |  | 
|---|---|---|
| Company | Crawler names | How to check | 
|---|---|---|
| [OpenAI](https://developers.openai.com/api/docs/bots) | `GPTBot` ,`OAI-SearchBot` ,`ChatGPT-User` | Each crawler has its own list of IP addresses. The list for GPTBot is [gptbot.json](https://openai.com/gptbot.json) . OAI-SearchBot has[searchbot.json](https://openai.com/searchbot.json) , and ChatGPT-User has[chatgpt-user.json](https://openai.com/chatgpt-user.json) . | 
| [Anthropic](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler) | `ClaudeBot` ,`Claude-SearchBot` ,`Claude-User` | Anthropic has one list of IP addresses for all three crawlers, called [bots.json](https://claude.com/crawling/bots.json) . When you ask Claude to do something on the web, it can use a browser that runs on Anthropic's servers. That browser adds`Claude-Agent` to its user agent. Anthropic lists the IP addresses of that browser in[another file](https://support.claude.com/en/articles/18234133-how-do-anthropic-hosted-browsers-identify-themselves-when-they-browse-the-web-on-a-user-s-behalf) . | 
| [Perplexity](https://docs.perplexity.ai/docs/resources/perplexity-crawlers) | `PerplexityBot` ,`Perplexity-User` | Each crawler has its own list of IP addresses. PerplexityBot has [perplexitybot.json](https://www.perplexity.ai/perplexitybot.json) , and Perplexity-User has[perplexity-user.json](https://www.perplexity.ai/perplexity-user.json) . | 
| [Google](https://developers.google.com/crawling/docs/crawlers-fetchers/verify-google-requests) | `Googlebot` is the crawler for Google Search. Google also uses the pages that Googlebot gets for AI Overviews and AI Mode, which are the AI answers in Google Search. Google's AI agents use the name`Google-Agent` . An AI agent is an AI program that does tasks on websites for you. | A DNS check. For Googlebot, the host name has to end in `googlebot.com` . Or you use the IP list`common-crawlers.json` . Google-Agent uses the addresses in`user-triggered-agents.json` . Google's page links to both files. | 
| Microsoft | `Bingbot` | A [DNS check](https://www.bing.com/webmasters/help/how-to-verify-bingbot-3905dc26) , where the host name has to end in`search.msn.com` . Or you use the IP list[bingbot.json](https://www.bing.com/toolbox/bingbot.json) . On Bing's[Verify Bingbot](https://www.bing.com/toolbox/verify-bingbot) page, you can type in an IP address and Bing checks it. | 
| [Apple](https://support.apple.com/en-us/119829) | `Applebot` | A DNS check, where the host name has to end in `applebot.apple.com` . Or you use the IP list[applebot.json](https://search.developer.apple.com/applebot.json) . | 
| [Amazon](https://developer.amazon.com/docs/amazonbot/amazonbot.html) | `Amazonbot` ,`Amzn-SearchBot` ,`Amzn-User` | Each crawler has its own list of IP addresses, and Amazon's crawler page links to them. These lists are web pages and not JSON files. | 
| [Common Crawl](https://commoncrawl.org/ccbot) | `CCBot` | A DNS check, where the host name has to end in `crawl.commoncrawl.org` . The DNS check only works for IPv4 addresses, the kind with four numbers like 20.171.207.5. It doesn't work for the longer IPv6 addresses. The IP list[ccbot.json](https://index.commoncrawl.org/ccbot.json) has both kinds. | 

Compare the address with the list for the crawler that the request says it is. OpenAI keeps a separate list for each of its crawlers. So if a request says it's GPTBot, but its address is only on the ChatGPT-User list, it doesn't count as a verified GPTBot visit. Anthropic is different. It has one list for all its crawlers, and [it says](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler) that a crawler with an address on that list comes from Anthropic.

One company's crawlers do different jobs, so a visit means something different depending on the crawler. When you ask ChatGPT something, it can open a web page to answer you. It uses ChatGPT-User for that. OpenAI says that ChatGPT-User doesn't crawl the web on its own. So a verified ChatGPT-User visit means that someone asked ChatGPT something and ChatGPT opened your page to answer. It doesn't mean that OpenAI is crawling your site. [How to block AI training but stay in AI search](https://www.vincentschmalbach.com/how-to-separate-ai-search-access-from-training-permissions/) explains what each crawler is for.

Start with the logs of the service that gets the requests first. That's often a CDN or a firewall, which checks requests and can block them before they reach your site. If you don't use either, start with the log of your web server. Find the requests that have the name of an AI crawler in their user agent. For each one, write down:

If a CDN or a reverse proxy handles the requests, your server may log the proxy's address instead of the crawler's. A reverse proxy is a server that gets the requests first and forwards them to your server. Cloudflare works like that. It forwards each request to your server, so by default your server [logs a Cloudflare IP address](https://developers.cloudflare.com/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips/) and not the visitor's.

Cloudflare puts the visitor's address into an extra header called `CF-Connecting-IP`. A header is a line of information that comes with a request, and the user agent is one of them. Your server can write the address from this header into the log. If your server runs Apache, the module `mod_remoteip` does that. A module is an add-on for the web server. On Nginx, the module `ngx_http_realip_module` does the same. Cloudflare's page has the setup for both and for many other servers. If you use a different CDN, look for the same instructions in its docs.

Your server should only believe this header when your own CDN or proxy added it. If requests can reach your server directly, without going through the CDN, anyone can send a made-up header with any address in it. So in the Cloudflare setup, you tell your server to accept the header only when the request comes from one of Cloudflare's own IP addresses.

If you can't tell which address belongs to the crawler, mark the request as unverified. Don't compare the proxy's address with a crawler list.

Say your log has requests that call themselves GPTBot, and you want to know if they came from OpenAI. First you find those requests. The `grep` command searches a file for a word and shows every line that contains it. You run it on your server in a terminal, which is the window where you type commands:

```
grep "GPTBot" access.log
```

That gives you the log lines with the IP address of each request. Next you look up those addresses in OpenAI's GPTBot list. But the list doesn't contain single addresses. It contains ranges of addresses, written in a short form called CIDR notation. For example, `20.171.207.0/24` is on the list. The `/24` means that the first three numbers stay the same, so the range covers every address from 20.171.207.0 to 20.171.207.255. That's why a search for your IP address in the list often finds nothing, even when the address is in one of the ranges. You need a check that understands ranges.

For that check, you download the list for the crawler. The `curl` command downloads a file from the web and saves it:

```
curl -o gptbot.json https://openai.com/gptbot.json
```

Then save this short Python script as `check_ip.py`. It checks if an address falls into one of the ranges on the list:

``` python
import ipaddress, json, sys

ip = ipaddress.ip_address(sys.argv[1])
data = json.load(open(sys.argv[2]))

for prefix in data["prefixes"]:
    network = prefix.get("ipv4Prefix") or prefix.get("ipv6Prefix")
    if ip in ipaddress.ip_network(network):
        print(f"{ip} is in {network} (list from {data['creationTime']})")
        break
else:
    print(f"{ip} is not in this list")
```

Run it with the IP address from your log and the file you downloaded:

```
python3 check_ip.py 20.171.207.5 gptbot.json
20.171.207.5 is in 20.171.207.0/24 (list from 2026-09-22T02:00:07.000000)
```

The JSON lists in the table above all use the same layout, so the script works with each of them. The script also works with IPv6 addresses, which are in Google's and Common Crawl's lists.

Companies change the addresses of their crawlers, so the lists change. Keep the file you checked against, or at least its date. Each JSON list has a field called `creationTime` that says when the company made it, and the script prints that date when it finds a match. A list from today doesn't tell you which addresses the crawler used months ago. If you check an old line from your log against today's list, write that down.

Some companies let you check their crawlers with DNS, the Domain Name System. DNS connects names on the internet with IP addresses. When you type a website's name into your browser, DNS finds the IP address for it. You need two lookups, and Google [requires both](https://developers.google.com/crawling/docs/crawlers-fetchers/verify-google-requests).

First, a reverse DNS lookup asks for the host name that belongs to the IP address. For Googlebot, the name has to end in `googlebot.com`. Then a forward DNS lookup asks for the IP address of that host name. It has to be the same address you started with. The `host` command does both lookups. This is Google's own example:

```
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
```

You need the second lookup because the first one alone can be faked. Whoever controls an IP address can choose which name the reverse lookup gives back for it. So someone who runs a fake crawler can make their address give back a googlebot.com name. But Google controls the googlebot.com names, so only Google can make such a name point back to that address.

The steps are the same for the other companies in the table, and only the end of the name changes. Use the DNS check only when the company describes it in its docs. OpenAI and Anthropic, for example, only publish IP lists.

If your site uses Cloudflare, it does part of this check for you. Cloudflare keeps a list of [verified bots](https://developers.cloudflare.com/bots/concepts/bot/verified-bots/). A bot only gets on that list after Cloudflare has checked who runs it.

Cloudflare's firewall is called the WAF, short for web application firewall. In the WAF, you can write your own rules, which Cloudflare calls custom rules. In a custom rule, you can use the field `cf.client.bot`. Its value is true when the request comes from one of these verified bots. You can [use that field on every plan](https://developers.cloudflare.com/waf/troubleshooting/faq/).

AI Crawl Control is a Cloudflare feature that shows which AI crawlers visit your site. On the Free plan, it [only uses the user agent to recognize AI crawlers](https://developers.cloudflare.com/ai-crawl-control/features/manage-ai-crawlers/). That's the same as reading the name in your log, so it can't tell a fake GPTBot from the real one.

Not every request that calls itself GPTBot or ClaudeBot will match a list. For each request, write down what you could verify. There are four possible results:

Put that result next to the details from your log, together with the date of the list you used.

Then decide what to do with each group. That depends on what you want to allow on your site and on how the requests behave. You can allow them or block them. A rate limit is the middle way. It slows the requests down by letting only a certain number through in a given time. A verified crawler can still use more of your server than you want to give it, so you don't have to let it in only because it's verified. And a request that only has a familiar name shouldn't get any special access.

Maybe your firewall blocks bots, and you want to let one crawler through. Then the rule that lets it through should check both the name and the IP list. Perplexity's [setup for Cloudflare](https://docs.perplexity.ai/docs/resources/perplexity-crawlers) shows how. Its rule lets a request through only when the user agent is PerplexityBot and the address is in PerplexityBot's IP ranges. So a fake PerplexityBot from another address doesn't get through. When the company changes its list, you have to update the rule.

Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.

Take a look at vroni.com
