Every AI bot on the web, in one open list.
See who runs each bot and what it wants. Block AI training, keep AI search, and catch fake bots. Free and community-built.
Not all AI bots want the same thing
Some train models on your content. Others send visitors from AI search. Each bot has a purpose label, so you can block one kind and keep the other.
Block training
GPTBot, ClaudeBot, Google-Extended, CCBot and more collect content to train AI models.
Keep AI search
OAI-SearchBot, PerplexityBot and Claude-SearchBot can link back to you from AI answers.
Decide on live fetches
ChatGPT-User and Perplexity-User fetch a page because a person asked for it.
Block AI bots in 60 seconds
Pick what to block, pick your platform, copy the result. Updated every time a new bot is added.
- Choose purposes: training, data providers, or every AI bot.
- Choose a format: robots.txt, nginx, Apache, Caddy, Cloudflare, HAProxy, lighttpd, IIS or Varnish.
- Copy it into your site. Done.
# robots.txt rules for AI bots
# Generated by AI Bots DB (https://github.com/ai-bots-db/ai-bots-db)
# Blocked purposes: training, data-provider
User-agent: AgentDataBot
User-agent: Ai2Bot-Dolma
User-agent: AI2Bot
User-agent: aiHitBot
User-agent: Amazonbot
User-agent: anthropic-ai
User-agent: ApifyBot
User-agent: ApifyWebsiteContentCrawler
…Catch fake bots
Anyone can send a GPTBot user-agent. AI Bots DB checks the visitor's IP against the official ranges that OpenAI, Anthropic, Google, Perplexity, Apple and others publish, synced every day.
Use it in any language
Packages for JavaScript, Python, Go and PHP, or plain JSON and CSV for everything else.
JavaScript / TypeScript
Node.js, Deno, Bun, browsers, Next.js middleware, Cloudflare Workers. Zero dependencies.
npm install ai-bots-dbimport { check } from 'ai-bots-db';
const { bot, spoofed } = check({ userAgent, ip });
if (spoofed || bot?.purpose === 'training') {
return new Response('Forbidden', { status: 403 });
}Python
Django, Flask, FastAPI or any script. Standard library only, Python 3.10+.
pip install ai-bots-dbfrom ai_bots_db import check
r = check(user_agent=ua, ip=ip)
if r.spoofed or (r.bot and r.bot["purpose"] == "training"):
abort(403)Go
net/http middleware, Gin, Echo. Data embedded, standard library only.
go get github.com/ai-bots-db/ai-bots-db/packages/gores := aibotsdb.Check(r.UserAgent(), clientIP)
if res.Spoofed || (res.Bot != nil && res.Bot.Purpose == aibotsdb.PurposeTraining) {
http.Error(w, "Forbidden", http.StatusForbidden)
return
}PHP
Laravel, Symfony, WordPress or plain PHP 8.1+. No dependencies.
composer require ai-bots-db/ai-bots-dbuse AIBotsDB\AIBotsDB;
$r = AIBotsDB::check($_SERVER['HTTP_USER_AGENT'] ?? '', $_SERVER['REMOTE_ADDR'] ?? null);
if ($r['spoofed'] || ($r['bot']['purpose'] ?? null) === 'training') {
http_response_code(403);
exit;
}Any other language
Plain JSON and CSV files, or the free HTTP API. No package needed.
curl -s https://aibotsdb.com/bots.json# Match each bot's userAgent.pattern against the User-Agent
# (case-insensitive substring, longest pattern first),
# then check the IP against ip-ranges.json.
curl -s https://aibotsdb.com/bots.json | jq '.bots[] | {name, purpose}'
curl -s "https://aibotsdb.com/api/check?ua=GPTBot&ip=20.171.207.1"Join the bot hunters
New AI bots appear every week. If you run a website, your server logs are the best source there is. Report a bot in a minute, or verify one of the 130 bots waiting for confirmation. No coding needed.