---
title: "botpassport: allowlist AI crawlers by their official IP ranges"
description: "Allowlist GPTBot, ClaudeBot, PerplexityBot and Googlebot by the IP ranges their operators publish, refreshed daily for CrowdSec, nginx, Caddy and nftables."
canonical: "https://laboetie.io/open-source/botpassport"
language: en
---
# botpassport: Allowlist AI crawlers and search engine bots by their official IP ranges

botpassport merges the IP address lists that OpenAI, Anthropic, Perplexity, Google, Microsoft, Apple, Amazon, Mistral AI, DuckDuckGo and Common Crawl publish for their crawlers. It keeps a CrowdSec allowlist equal to those lists and exports them for nginx, Caddy and nftables, so firewall rules and bans let GPTBot, ClaudeBot, PerplexityBot and Googlebot read your site.

- Official lists: 20 from 10 operators
- License: MIT
- Try it: npx botpassport check <ip>

## Who botpassport is for

### Sites that want AI citations

ChatGPT, Claude, Perplexity and Google AI Overviews cite the pages their crawlers can read. botpassport keeps the addresses those crawlers come from out of your bans.

### CrowdSec users

CrowdSec scenarios judge behaviour and user agents, and an AI crawler that requests many pages fast can trip one. The crowdsec-sync command puts every published crawler address in an allowlist that CrowdSec reads before it bans.

### nginx, Caddy and nftables setups

The dist folder of the repository holds a file for each server, rebuilt every day. With the Caddy matcher, crawlers go straight to the app while other visitors pass your rate limit or challenge first.

## How botpassport works

### Official lists only

Each source names the operator's documentation and the list it publishes. botpassport adds no address of its own and ignores the user agent, which any scanner can send.

### A failed list keeps its addresses

The update command fetches every list at once and retries a failed list twice. A list that stays unreachable is left out of that run, and both crowdsec-sync and the daily build keep its previous addresses.

### Allowlist items it owns

Each CrowdSec item carries botpassport:<source> as its description. A sync removes only the stale items of a source it fetched, leaves the items you added by hand, and changes nothing when the lists did not.

### The same lists give the same bytes

A snapshot holds no fetch time and sorts its sources, so two runs on unchanged lists write identical files. The daily GitHub Action commits the dist folder only on the days a list changed.

### Reverse DNS for new addresses

For the operators that document it, check --dns resolves the address to a hostname under the operator's domain and that hostname back to the address. It confirms a crawler on an address its operator has not listed yet.

### A purpose for each list

Each list carries one purpose: search, AI search, fetches a person asked an assistant for, AI training or ads. The --purpose option keeps the ones you name, so a site can allow AI search and leave AI training to robots.txt.

## Get started

botpassport needs Node.js 22 or later and has no runtime dependency. The crowdsec-sync command needs CrowdSec 1.6.8 or later. Run it daily from a systemd timer or cron.

Check an address:

```
npx botpassport check 216.73.216.12
npx botpassport check 66.249.66.1 --dns
```

CrowdSec:

```
sudo npx botpassport crowdsec-sync --dry-run
sudo npx botpassport crowdsec-sync
cscli allowlists check 216.73.216.12
```

nginx, Caddy, nftables:

```
npx botpassport export caddy --out /etc/caddy/botpassport.caddy
npx botpassport export nginx --out /etc/nginx/botpassport.conf
npx botpassport export nftables --out /etc/nftables.d/botpassport.nft
```

## License

- Library, command and build scripts: MIT

## Links

- GitHub: https://github.com/ilanoh/botpassport
- npm: https://www.npmjs.com/package/botpassport
- Daily lists: https://github.com/ilanoh/botpassport/tree/main/dist
