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.
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.
The botpassport command and library install from the botpassport package on npm.
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 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.
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.
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.
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.
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.
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.
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.
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.
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 --dnsCrowdSec
sudo npx botpassport crowdsec-sync --dry-run
sudo npx botpassport crowdsec-sync
cscli allowlists check 216.73.216.12nginx, 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