Skip to content
AI Bot Guard

Control AI bots on your website with one line of code.

Block AI training, keep AI search, and catch fake bots.
Free and open source, for every website.

npm version npm downloads GitHub stars License: MIT


Why we exist

AI companies send bots to read the web. Some of them copy your content to train AI models. Others help people find you in AI search and send you visitors. Some only pretend to be a well-known bot.

You should decide who gets in. AI Bot Guard gives every website that choice, for free.

Projects

Project What it does
🛡️ AI Bot Guard Middleware that blocks, allows or rate-limits AI bots, and catches fakes. Express, Hono, Next.js, Cloudflare Workers, Deno and Bun.
📚 AI Bots DB Every AI bot on the web, in one open list. The data behind AI Bot Guard.

Quick start

npm install ai-bot-guard
import { aiBotGuard } from 'ai-bot-guard/express';

app.use(aiBotGuard());
// ✋ AI training bots  → blocked
// ✅ AI search bots    → allowed, so you still show up in AI answers
// ✅ Real people       → never touched

More in the docs and recipes.

Get involved

You don't need to be an expert to help.

You have… Do this
A minute ⭐ Star the project so more people find it
A strange bot in your logs 🕵️ Report it to AI Bots DB
A question or an idea 💬 Start a discussion
A favourite framework 🔌 Write an adapter
A bit of time to code 🧩 Pick a good first issue
A business that pays for AI crawl 💖 Become a sponsor

💖 Sponsors

AI Bot Guard is free and always will be. Sponsors keep it that way: new adapters, fast security fixes and keeping up with new AI bots.

Especially valuable for hosting and CDN providers, web agencies, publishers, SaaS platforms and security companies. Become a sponsor →


Popular repositories Loading

  1. ai-bot-guard ai-bot-guard Public

    🛡️ AI Bot Guard lets you decide which AI bots can visit your website. Block the copiers, allow the helpers, stop the fakes.

    TypeScript 1 1

  2. .github .github Public

Repositories

Showing 2 of 2 repositories

Top languages

Loading…

Most used topics

Loading…