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.

175AI bots
95companies
19official IP lists
dailyIP range sync

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.

Training 49Data provider 25AI search 32User fetch 36Agent 19Unknown 14
Training

Block training

GPTBot, ClaudeBot, Google-Extended, CCBot and more collect content to train AI models.

AI search

Keep AI search

OAI-SearchBot, PerplexityBot and Claude-SearchBot can link back to you from AI answers.

User fetch

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.

  1. Choose purposes: training, data providers, or every AI bot.
  2. Choose a format: robots.txt, nginx, Apache, Caddy, Cloudflare, HAProxy, lighttpd, IIS or Varnish.
  3. Copy it into your site. Done.
robots.txt (training and data providers)
# 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.

SpoofedSays GPTBot, but the IP is not OpenAI's198.51.100.7 is outside every range in openai.com/gptbot.json
VerifiedReal ClaudeBot from AnthropicIP is inside claude.com/crawling/bots.json

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-db
npm →
import { 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-db
PyPI →
from 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/go
Go package →
res := 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-db
Packagist →
use 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
API docs →
# 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.