noaibot 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0
4
+
5
+ First release.
6
+
7
+ - A list of 209 AI bots from ai.robots.txt, with categories (training, search, assistant, other), robots.txt-only flags and side-effect notes.
8
+ - `robotsTxt()`: a robots.txt for the selected bots, with your own rules appended.
9
+ - `noaibot()`: middleware for Express, Connect and Node.js http. `block()`: for Next.js middleware, Cloudflare Workers, Hono, Deno and Bun. Both can serve the generated robots.txt.
10
+ - `isAIBot()`: whole-token, exact-case matching, tested against real browsers, search engines and link-preview bots.
11
+ - `serverRules()` and ready-made files for nginx, Apache, Caddy and HAProxy.
12
+ - A weekly workflow that refreshes the list.
package/LICENSE ADDED
@@ -0,0 +1,48 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 CK Giri
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ The bot list in data/ and files/ is based on the ai.robots.txt project
26
+ (https://github.com/ai-robots-txt/ai.robots.txt), used under its license:
27
+
28
+ MIT License
29
+
30
+ Copyright (c) 2024 ai.robots.txt
31
+
32
+ Permission is hereby granted, free of charge, to any person obtaining a copy
33
+ of this software and associated documentation files (the "Software"), to deal
34
+ in the Software without restriction, including without limitation the rights
35
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
36
+ copies of the Software, and to permit persons to whom the Software is
37
+ furnished to do so, subject to the following conditions:
38
+
39
+ The above copyright notice and this permission notice shall be included in all
40
+ copies or substantial portions of the Software.
41
+
42
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
43
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
44
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
46
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
47
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
48
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,262 @@
1
- # Temporary Holding Version
1
+ <div align="center">
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ <h1>noaibot</h1>
4
+
5
+ <h3>Keep AI crawlers off your site, in one line.</h3>
6
+
7
+ <p>
8
+ <a href="https://www.npmjs.com/package/noaibot"><img src="https://img.shields.io/npm/v/noaibot?color=blue" alt="npm version"></a>
9
+ <a href="https://github.com/ckgiri/noaibot/actions/workflows/ci.yml"><img src="https://github.com/ckgiri/noaibot/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
10
+ <a href="https://www.npmjs.com/package/noaibot?activeTab=dependencies"><img src="https://img.shields.io/badge/dependencies-0-brightgreen" alt="zero dependencies"></a>
11
+ <a href="https://www.npmjs.com/package/noaibot"><img src="https://img.shields.io/npm/types/noaibot" alt="TypeScript types included"></a>
12
+ <a href="LICENSE"><img src="https://img.shields.io/npm/l/noaibot" alt="MIT license"></a>
13
+ </p>
14
+
15
+ <p>
16
+ <a href="#installation">Installation</a> ·
17
+ <a href="#robotstxt">robots.txt</a> ·
18
+ <a href="#block-at-the-server">Block at the server</a> ·
19
+ <a href="#nginx-apache-caddy-haproxy">nginx, Apache, Caddy</a> ·
20
+ <a href="#choose-what-to-block">Choose what to block</a> ·
21
+ <a href="#watch-out">Watch out</a> ·
22
+ <a href="#the-list">The list</a> ·
23
+ <a href="#api">API</a> ·
24
+ <a href="#credits">Credits</a>
25
+ </p>
26
+
27
+ </div>
28
+
29
+ **noaibot** keeps AI crawlers, the bots that collect web pages to train AI models or answer questions with your content, away from your site. It comes with a list of 200+ AI bots (GPTBot, ClaudeBot, PerplexityBot, CCBot, Bytespider, Meta's crawlers and many more), sorted into **training**, **search** and **assistant** bots, and gives you everything to act on it:
30
+
31
+ - a **robots.txt** that asks them to stay away,
32
+ - a **one-line blocker** for Express, Next.js, Cloudflare Workers, Hono, Deno and Bun that turns away the ones that don't ask,
33
+ - ready-made **nginx, Apache, Caddy and HAProxy** rules.
34
+
35
+ ```js
36
+ // Next.js: middleware.ts
37
+ import { block } from "noaibot";
38
+ import { NextResponse } from "next/server";
39
+
40
+ export function middleware(request) {
41
+ return block(request) ?? NextResponse.next();
42
+ }
43
+ ```
44
+
45
+ ## ✨ Features
46
+
47
+ - 🤖 **209 AI bots**, from the community-maintained [ai.robots.txt](https://github.com/ai-robots-txt/ai.robots.txt) list, refreshed every week
48
+ - 🏷️ **Categories**: block bots that train AI models, but keep AI search engines that send you visitors, or any mix you like
49
+ - 📄 **robots.txt** generator, with your own rules appended
50
+ - 🚧 **Real blocking**: robots.txt is only a request, and some bots ignore it; the middleware and server rules answer them with 403
51
+ - 🎯 **No false alarms**: whole-token, exact-case matching, tested against real browsers, Googlebot, Bing, DuckDuckGo, Yandex, Baidu, Sogou and the link previews of Slack, X, LinkedIn, Discord, WhatsApp and Telegram
52
+ - ⚠️ **Side effects explained**: bots whose blocking also breaks something else, like Facebook and WhatsApp link previews, carry a note
53
+ - 📦 **Zero dependencies**: 8.4 KB minified and gzipped. Node.js 18+, edge runtimes, browsers, Deno and Bun, ESM and CommonJS, with TypeScript types
54
+
55
+ ## Installation
56
+
57
+ ```bash
58
+ npm install noaibot
59
+ ```
60
+
61
+ No code at all? Copy a ready-made file from [files/](files): `robots.txt`, `nginx.conf`, `.htaccess`, `Caddyfile` or `haproxy.txt`.
62
+
63
+ ## robots.txt
64
+
65
+ ```js
66
+ import { robotsTxt } from "noaibot";
67
+
68
+ robotsTxt({ append: "User-agent: *\nAllow: /\nSitemap: https://example.com/sitemap.xml" });
69
+ ```
70
+
71
+ ```
72
+ # AI crawlers, blocked with noaibot: https://github.com/ckgiri/noaibot
73
+ User-agent: AddSearchBot
74
+ User-agent: AgentDataBot
75
+ …
76
+ User-agent: GPTBot
77
+ …
78
+ Disallow: /
79
+
80
+ User-agent: *
81
+ Allow: /
82
+ Sitemap: https://example.com/sitemap.xml
83
+ ```
84
+
85
+ In Next.js, return it from `app/robots.txt/route.ts`, or let the blocker serve it (see `serveRobotsTxt` below).
86
+
87
+ ## Block at the server
88
+
89
+ robots.txt asks politely. Bots that ignore it get a `403` from the blocker. `/robots.txt` itself stays readable, so well-behaved bots can still see your rules.
90
+
91
+ **Express, Connect and Node.js http**
92
+
93
+ ```js
94
+ import express from "express";
95
+ import { noaibot } from "noaibot";
96
+
97
+ const app = express();
98
+ app.use(noaibot({ serveRobotsTxt: true })); // also answers /robots.txt
99
+ ```
100
+
101
+ **Next.js middleware, Cloudflare Workers, Hono, Deno, Bun**: anything with a `Request`
102
+
103
+ ```js
104
+ import { block } from "noaibot";
105
+
106
+ // Cloudflare Workers
107
+ export default {
108
+ async fetch(request, env) {
109
+ return block(request, { serveRobotsTxt: true }) ?? env.ASSETS.fetch(request);
110
+ },
111
+ };
112
+
113
+ // Hono
114
+ app.use(async (c, next) => block(c.req.raw) ?? next());
115
+ ```
116
+
117
+ **Just check a user agent**
118
+
119
+ ```js
120
+ import { isAIBot } from "noaibot";
121
+
122
+ isAIBot(request.headers["user-agent"]);
123
+ // { name: "GPTBot", operator: "OpenAI", category: "training", respectsRobotsTxt: true, … } or null
124
+ ```
125
+
126
+ ## nginx, Apache, Caddy, HAProxy
127
+
128
+ Ready to copy from [files/](files), or generate your own selection:
129
+
130
+ ```js
131
+ import { serverRules } from "noaibot";
132
+
133
+ serverRules("nginx", { categories: ["training"] });
134
+ ```
135
+
136
+ | File | Where it goes |
137
+ |---|---|
138
+ | [files/nginx.conf](files/nginx.conf) | A `map` for the `http { }` block, plus `if ($noaibot) { return 403; }` in each `server { }` |
139
+ | [files/.htaccess](files/.htaccess) | Apache `.htaccess` or `<VirtualHost>` (needs mod_rewrite) |
140
+ | [files/Caddyfile](files/Caddyfile) | Inside your Caddy site block |
141
+ | [files/haproxy.txt](files/haproxy.txt) | `acl noaibot hdr_sub(user-agent) -f /etc/haproxy/noaibot.txt` then `http-request deny if noaibot` |
142
+ | [files/robots.txt](files/robots.txt) | Every bot |
143
+ | [files/robots-training-only.txt](files/robots-training-only.txt) | Only bots that collect training data |
144
+
145
+ ## Choose what to block
146
+
147
+ Every bot has a category:
148
+
149
+ | Category | What it does | Examples |
150
+ |---|---|---|
151
+ | `training` | Collects pages to train AI models | GPTBot, ClaudeBot, CCBot, Google-Extended, Bytespider |
152
+ | `search` | Builds an AI search index, often linking back to you | OAI-SearchBot, PerplexityBot, Claude-SearchBot |
153
+ | `assistant` | Fetches a page when a person asks an AI about it | ChatGPT-User, Claude-User, Perplexity-User |
154
+ | `other` | Everything else, including general crawlers | GoogleOther, facebookexternalhit |
155
+
156
+ ```js
157
+ // Block AI training, but stay visible in AI search and assistants
158
+ robotsTxt({ categories: ["training"] });
159
+ app.use(noaibot({ categories: ["training"] }));
160
+
161
+ // Block everything except a few
162
+ app.use(noaibot({ allow: ["facebookexternalhit", "Applebot"] }));
163
+ ```
164
+
165
+ Categories of the best-known bots are set from their operators' documentation; for the rest they're a best guess from each bot's description. Check [files/table.md](files/table.md) for any bot you care about.
166
+
167
+ ## Watch out
168
+
169
+ Some bots do more than AI. Blocking them has side effects, and each carries a `note`:
170
+
171
+ | Bot | Side effect of blocking it |
172
+ |---|---|
173
+ | `facebookexternalhit` | Breaks link previews on Facebook, Messenger and WhatsApp |
174
+ | `Applebot` | Removes you from Siri and Spotlight results. To opt out of Apple AI training only, block `Applebot-Extended` |
175
+ | `Amazonbot` | Also powers Alexa answers |
176
+ | `PetalBot` | Huawei's search engine |
177
+
178
+ Some names, like `Google-Extended` and `Applebot-Extended`, are **robots.txt-only**: Google and Apple crawl with their normal bots and only check these names in robots.txt. noaibot puts them in robots.txt and never tries to match them against user agents. Blocking them doesn't affect Google or Apple search.
179
+
180
+ ## The list
181
+
182
+ ```js
183
+ import { bots, updated } from "noaibot";
184
+
185
+ bots.length; // 209
186
+ updated; // "2026-12-01"
187
+ bots.find((b) => b.name === "GPTBot");
188
+ // { name: "GPTBot", operator: "OpenAI", operatorUrl: "https://openai.com", category: "training",
189
+ // respectsRobotsTxt: true, purpose: "Scrapes data to train OpenAI's products.", … }
190
+ ```
191
+
192
+ The full list with long descriptions is in [files/bots.json](files/bots.json) (also `import list from "noaibot/bots.json"`), and as a readable table in [files/table.md](files/table.md).
193
+
194
+ ## API
195
+
196
+ | Export | What it does |
197
+ |---|---|
198
+ | `robotsTxt(options?)` | A robots.txt that disallows the selected bots; `append` adds your own rules |
199
+ | `noaibot(options?)` | Middleware for Express, Connect and Node.js http |
200
+ | `block(request, options?)` | For fetch handlers: returns a `Response` (blocked, or robots.txt) or `undefined` |
201
+ | `isAIBot(userAgent, options?)` | The matching bot, or `null` |
202
+ | `serverRules(format, options?)` | Rules for `"nginx"`, `"apache"`, `"caddy"` or `"haproxy"` |
203
+ | `bots`, `select(options?)`, `categories`, `updated` | The list, filtered by your options |
204
+ | `pattern(names)` | The regular expression source used for matching |
205
+
206
+ Options shared by all of them:
207
+
208
+ | Option | Default | What it does |
209
+ |---|---|---|
210
+ | `categories` | all | Only these categories: `"training"`, `"search"`, `"assistant"`, `"other"` |
211
+ | `allow` | none | Bot names to leave out, exact case |
212
+
213
+ Blocker options (`noaibot` and `block`):
214
+
215
+ | Option | Default | What it does |
216
+ |---|---|---|
217
+ | `status` | `403` | Status code for blocked bots |
218
+ | `message` | "AI crawlers are not allowed on this site." | Response body |
219
+ | `allowPaths` | `["/robots.txt"]` | Paths bots may always read |
220
+ | `serveRobotsTxt` | `false` | Answer `GET /robots.txt` with the generated file (pass robots.txt options to customise it) |
221
+ | `onBlock` | none | `(bot, userAgent) => void`, for logging |
222
+
223
+ ## Credits
224
+
225
+ The bot list comes from [ai.robots.txt](https://github.com/ai-robots-txt/ai.robots.txt), a community project that tracks AI crawlers, used under the MIT License (see [LICENSE](LICENSE)). noaibot adds categories, side-effect notes, the matcher, the middleware and the server formats. To add a bot to the list, please [contribute to ai.robots.txt](https://github.com/ai-robots-txt/ai.robots.txt); noaibot picks up changes every week.
226
+
227
+ ## Contributing
228
+
229
+ **noaibot is open source and contributions are welcome**: a wrong category, a missing side-effect note, a framework recipe or a user agent that's matched when it shouldn't be.
230
+
231
+ ```bash
232
+ git clone https://github.com/ckgiri/noaibot.git
233
+ cd noaibot
234
+ npm install
235
+ npm test
236
+ npm run update && npm run generate # refresh the list and the files
237
+ ```
238
+
239
+ See [CONTRIBUTING.md](CONTRIBUTING.md). Everyone taking part follows the [Code of Conduct](CODE_OF_CONDUCT.md).
240
+
241
+ ## Sponsors
242
+
243
+ **Free and open source, MIT-licensed.** If this project saves you or your team time, sponsoring is the best way to give back. It funds maintenance, security fixes and new features across all my open-source packages, so they stay reliable, independent and free for everyone.
244
+
245
+ <p>
246
+ <a href="https://github.com/sponsors/ckgiri"><img src="https://img.shields.io/badge/Sponsor-ckgiri-ea4aaa?logo=githubsponsors&logoColor=white" alt="Sponsor ckgiri on GitHub"></a>
247
+ </p>
248
+
249
+ | Sponsor as | You get |
250
+ |---|---|
251
+ | **A company** | Your logo here, with a link to your site, and early answers on issues that affect you |
252
+ | **An individual** | Your name here, and my thanks |
253
+
254
+ Thank you to everyone who supports this work. Your logo or name could be the first one here: [become a sponsor](https://github.com/sponsors/ckgiri).
255
+
256
+ ## Changelog
257
+
258
+ See [CHANGELOG.md](CHANGELOG.md).
259
+
260
+ ## License
261
+
262
+ [MIT](LICENSE) © CK Giri. The bot list: MIT © 2024 ai.robots.txt.
package/dist/index.cjs ADDED
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ block: () => block,
24
+ bots: () => bots,
25
+ categories: () => categories,
26
+ isAIBot: () => isAIBot,
27
+ noaibot: () => noaibot,
28
+ pattern: () => pattern,
29
+ robotsTxt: () => robotsTxt,
30
+ select: () => select,
31
+ serverRules: () => serverRules,
32
+ updated: () => updated
33
+ });
34
+ module.exports = __toCommonJS(src_exports);
35
+
36
+ // data/bots.compact.json
37
+ var bots_compact_default = { updated: "2026-12-01", bots: [{ name: "AddSearchBot", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Search Crawlers" }, { name: "AgentDataBot", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "AgentTimes", operator: "The Agent Times", operatorUrl: "https://theagenttimes.com/about", category: "assistant", respectsRobotsTxt: null, purpose: "Data Scraper from RSS Feeds." }, { name: "AGI Agent", operator: "AGI, Inc", category: "assistant", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "AI2Bot", operator: "Ai2", operatorUrl: "https://allenai.org/crawler", category: "training", respectsRobotsTxt: true, purpose: "Content is used to train open language models." }, { name: "AI2Bot-DeepResearchEval", operator: "Ai2, a non-profit AI research institute", category: "search", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "Ai2Bot-Dolma", operator: "Ai2", operatorUrl: "https://allenai.org/crawler", category: "training", respectsRobotsTxt: true, purpose: "Content is used to train open language models." }, { name: "aiHitBot", operator: "aiHit", operatorUrl: "https://www.aihitdata.com/about", category: "training", respectsRobotsTxt: true, purpose: "A massive, artificial intelligence/machine learning, automated system." }, { name: "AIWebIndex", operator: "Lyrenth", operatorUrl: "https://lyrenth.com", category: "search", respectsRobotsTxt: true, docsUrl: "https://lyrenth.com/crawler-policy", purpose: "AI Search Crawlers" }, { name: "amazon-kendra", operator: "Amazon", category: "search", respectsRobotsTxt: true, purpose: "Collects data for AI natural language search" }, { name: "amazon-QBusiness", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "Amazonbot", operator: "Amazon", category: "search", respectsRobotsTxt: true, purpose: "Service improvement and enabling answers for Alexa users.", note: "Also powers Alexa answers." }, { name: "AmazonBuyForMe", operator: "Amazon", operatorUrl: "https://amazon.com", category: "other", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "Amzn-SearchBot", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Search Crawlers" }, { name: "Amzn-User", operator: "Amazon, used for fetching web content to answer user queries through Alexa and other Amazon AI services", category: "assistant", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "Andibot", operator: "Andi", operatorUrl: "https://andisearch.com/", category: "search", respectsRobotsTxt: null, purpose: "Search engine using generative AI, AI Search Assistant" }, { name: "Anomura", operator: "Direqt", operatorUrl: "https://direqt.ai", category: "search", respectsRobotsTxt: true, purpose: "Collects data for AI search" }, { name: "anthropic-ai", operator: "Anthropic", operatorUrl: "https://www.anthropic.com", category: "training", respectsRobotsTxt: null, purpose: "Scrapes data to train Anthropic's AI products." }, { name: "ApifyBot", operator: "Unclear at this time.", category: "training", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "ApifyWebsiteContentCrawler", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "Applebot", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: true, docsUrl: "https://support.apple.com/en-us/119829#retrieval", purpose: "AI Search Crawlers", note: "Apple's search crawler for Siri and Spotlight. Blocking it removes you from Apple search results. To opt out of Apple AI training only, block Applebot-Extended." }, { name: "Applebot-Extended", operator: "Apple", operatorUrl: "https://support.apple.com/en-us/119829#datausage", category: "training", respectsRobotsTxt: true, purpose: "Powers features in Siri, Spotlight, Safari, Apple Intelligence, and others.", robotsTxtOnly: true }, { name: "Aranet-SearchBot", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "Undocumented AI Agents" }, { name: "atlassian-bot", operator: "Atlassian", operatorUrl: "https://www.atlassian.com", category: "search", respectsRobotsTxt: true, docsUrl: "https://support.atlassian.com/organization-administration/docs/connect-custom-website-to-rovo/#Editing-your-robots.txt", purpose: "AI search, assistants and agents" }, { name: "Awario", operator: "Awario", category: "other", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "AzureAI-SearchBot", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Search Crawlers" }, { name: "bedrockbot", operator: "Amazon", operatorUrl: "https://amazon.com", category: "other", respectsRobotsTxt: true, docsUrl: "https://docs.aws.amazon.com/bedrock/latest/userguide/webcrawl-data-source-connector.html#configuration-webcrawl-connector", purpose: "Data scraping for custom AI applications." }, { name: "bigsur.ai", operator: "Big Sur AI that fetches website content to enable AI-powered web agents, sales assistants, and content marketing solutions for busi\u2026", category: "other", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "BixelBot", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "Bravebot", operator: "https://safe.search.brave.com/help/brave-search-crawler", category: "search", respectsRobotsTxt: true, purpose: "AI Data Providers" }, { name: "Brightbot", operator: "Unclear at this time.", category: "training", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "Brightbot 1.0", operator: "https://brightdata.com/brightbot", category: "training", respectsRobotsTxt: null, purpose: "LLM/AI training." }, { name: "BuddyBot", operator: "BuddyBotLearning", operatorUrl: "https://www.buddybotlearning.com", category: "other", respectsRobotsTxt: null, purpose: "AI Learning Companion" }, { name: "Bytespider", operator: "ByteDance", category: "training", respectsRobotsTxt: false, purpose: "LLM training." }, { name: "CartAI Agentic Commerce", operator: "CartAI that accesses online stores to support user-directed shopping and checkout workflows", category: "assistant", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "CCBot", operator: "Common Crawl Foundation", operatorUrl: "https://commoncrawl.org", category: "training", respectsRobotsTxt: true, docsUrl: "https://commoncrawl.org/ccbot", purpose: "Provides open crawl dataset, used for many purposes, including Machine Learning/AI." }, { name: "Channel3Bot", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Search Crawlers" }, { name: "ChatGLM-Spider", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "ChatGPT Agent", operator: "OpenAI", operatorUrl: "https://openai.com", category: "assistant", respectsRobotsTxt: true, purpose: "AI Agents" }, { name: "ChatGPT-User", operator: "OpenAI", operatorUrl: "https://openai.com", category: "assistant", respectsRobotsTxt: true, purpose: "AI Assistants" }, { name: "Claude-Agent", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "Claude-Code", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Coding Agents" }, { name: "Claude-SearchBot", operator: "Anthropic", operatorUrl: "https://www.anthropic.com", category: "search", respectsRobotsTxt: true, docsUrl: "https://support.anthropic.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler", purpose: "Claude-SearchBot navigates the web to improve search result quality for users. It analyzes online content specifically to enhance the relevance and accuracy of search responses." }, { name: "Claude-User", operator: "Anthropic", operatorUrl: "https://www.anthropic.com", category: "assistant", respectsRobotsTxt: true, docsUrl: "https://support.anthropic.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler", purpose: "AI Assistants" }, { name: "Claude-Web", operator: "Anthropic", category: "training", respectsRobotsTxt: null, purpose: "Undocumented AI Agents" }, { name: "ClaudeBot", operator: "Anthropic", operatorUrl: "https://www.anthropic.com", category: "training", respectsRobotsTxt: true, docsUrl: "https://support.anthropic.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler", purpose: "Scrapes data to train Anthropic's AI products." }, { name: "CledaraBot", operator: "Cledara that visits SaaS providers to complete customer-approved administrative tasks, including invoice collection and user managem\u2026", category: "other", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "Cloudflare-AutoRAG", operator: "Cloudflare", operatorUrl: "https://developers.cloudflare.com/autorag", category: "search", respectsRobotsTxt: true, purpose: "Collects data for AI search" }, { name: "CloudflareBrowserRenderingCrawler", operator: "Cloudflare that returns rendered website content for research, monitoring, and AI data workflows", category: "search", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "CloudVertexBot", operator: "Unclear at this time.", category: "training", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "Code", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Coding Agents" }, { name: "Codex", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Coding Agents" }, { name: "cohere-ai", operator: "Cohere", operatorUrl: "https://cohere.com", category: "assistant", respectsRobotsTxt: null, purpose: "Retrieves data to provide responses to user-initiated prompts." }, { name: "cohere-training-data-crawler", operator: "Cohere to download training data for its LLMs (Large Language Models) that power its enterprise AI products", category: "training", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "Cotoyogi", operator: "ROIS", operatorUrl: "https://ds.rois.ac.jp/en_center8/en_crawler/", category: "training", respectsRobotsTxt: true, purpose: "AI LLM Scraper." }, { name: "CragCrawler", operator: "CragSoftware, a Brazil-based software company specializing in data engineering and AI web scraping services", category: "other", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "Crawl4AI", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "Undocumented AI Agents" }, { name: "Crawlspace", operator: "Crawlspace", operatorUrl: "https://crawlspace.dev", category: "other", respectsRobotsTxt: true, docsUrl: "https://news.ycombinator.com/item?id=42756654", purpose: "AI Data Providers" }, { name: "Cursor", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Coding Agents" }, { name: "Datenbank Crawler", operator: "Datenbank", category: "other", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "DeepSeekBot", operator: "DeepSeek", category: "training", respectsRobotsTxt: false, purpose: "Training language models and improving AI products" }, { name: "Devin", operator: "Devin AI", category: "other", respectsRobotsTxt: true, purpose: "AI Coding Agents" }, { name: "Diffbot", operator: "Diffbot", operatorUrl: "https://www.diffbot.com/", category: "other", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "Diffbot-User", operator: "Diffbot", operatorUrl: "https://www.diffbot.com/", category: "assistant", respectsRobotsTxt: true, purpose: "AI Assistants" }, { name: "Dot", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "DoubaoBot", operator: "ByteDance", category: "training", respectsRobotsTxt: null, purpose: "AI crawler for ByteDance's Doubao AI assistant." }, { name: "DuckAssistBot", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: true, docsUrl: "https://duckduckgo.com/duckduckgo-help-pages/results/duckassistbot/", purpose: "AI Assistants" }, { name: "Echobot Bot", operator: "Echobox", category: "other", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "EchoboxBot", operator: "Echobox", operatorUrl: "https://echobox.com", category: "other", respectsRobotsTxt: null, purpose: "Data collection to support AI-powered products." }, { name: "ElevenlabsBot", operator: "ElevenLabs", operatorUrl: "https://elevenlabs.io", category: "other", respectsRobotsTxt: true, purpose: "AI Assistants" }, { name: "ElevenlabsCrawler", operator: "ElevenLabs", operatorUrl: "https://elevenlabs.io", category: "training", respectsRobotsTxt: true, purpose: "AI Data Scraper" }, { name: "ERNIEBot", operator: "Baidu", category: "other", respectsRobotsTxt: null, purpose: "Collects public web content for Baidu's ERNIE large language models." }, { name: "ExaBot", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "ExaSearchBot", operator: "Exa", operatorUrl: "https://exa.ai", category: "search", respectsRobotsTxt: null, purpose: "AI Search Crawlers" }, { name: "ExaUser", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "FacebookBot", operator: "Meta/Facebook", category: "training", respectsRobotsTxt: true, docsUrl: "https://developers.facebook.com/docs/sharing/bot/", purpose: "Training language models" }, { name: "facebookexternalhit", operator: "Meta/Facebook", category: "other", respectsRobotsTxt: false, docsUrl: "https://github.com/ai-robots-txt/ai.robots.txt/issues/40#issuecomment-2524591313", purpose: "Ostensibly only for sharing, but likely used as an AI crawler as well", note: "Also makes link previews on Facebook, Messenger and WhatsApp. Blocking it breaks your previews there." }, { name: "Factset_spyderbot", operator: "Factset", operatorUrl: "https://www.factset.com/ai", category: "training", respectsRobotsTxt: null, purpose: "AI model training." }, { name: "FirecrawlAgent", operator: "Firecrawl that extracts web content and converts it into structured data for use in LLM and AI applications", category: "assistant", respectsRobotsTxt: true, purpose: "AI Data Providers" }, { name: "FriendlyCrawler", operator: "Unknown", category: "training", respectsRobotsTxt: true, docsUrl: "https://imho.alex-kunz.com/2024/01/25/an-update-on-friendly-crawler", purpose: "We are using the data from the crawler to build datasets for machine learning experiments." }, { name: "GeistHaus-PageFetcher", operator: "GeistHaus, a company developing AI systems for therapy and psychological assessment", category: "assistant", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "Gemini-Deep-Research", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "GeneralRetrievalBot", operator: "AxionOrbital Space Inc.", category: "search", respectsRobotsTxt: true, docsUrl: "https://generalretrieval.com/bot", purpose: "AI Search Crawlers" }, { name: "Google-Agent", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: true, docsUrl: "https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers#google-agent", purpose: "AI Agents" }, { name: "Google-CloudVertexBot", operator: "Google", category: "other", respectsRobotsTxt: true, docsUrl: "https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers", purpose: "Build and manage AI models for businesses employing Vertex AI" }, { name: "Google-Extended", operator: "Google", category: "training", respectsRobotsTxt: true, docsUrl: "https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers", purpose: "LLM training.", robotsTxtOnly: true }, { name: "Google-Firebase", operator: "Google", category: "other", respectsRobotsTxt: null, purpose: "Used as part of AI apps developed by users of Google's Firebase AI products." }, { name: "Google-Gemini-CLI", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Coding Agents" }, { name: "Google-GeminiNotebook", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "Google-NotebookLM", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "GoogleAgent-Mariner", operator: "Google", category: "assistant", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "GoogleAgent-URLContext", operator: "Google that retrieves web content on behalf of Gemini API users", category: "assistant", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "GoogleOther", operator: "Google", category: "other", respectsRobotsTxt: true, docsUrl: "https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers", purpose: "Scrapes data.", note: "A general Google crawler for research and development, not Google Search." }, { name: "GoogleOther-Image", operator: "Google", category: "other", respectsRobotsTxt: true, docsUrl: "https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers", purpose: "Scrapes data." }, { name: "GoogleOther-Video", operator: "Google", category: "other", respectsRobotsTxt: true, docsUrl: "https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers", purpose: "Scrapes data." }, { name: "GPTBot", operator: "OpenAI", operatorUrl: "https://openai.com", category: "training", respectsRobotsTxt: true, purpose: "Scrapes data to train OpenAI's products." }, { name: "Grok Bot", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "GrokAppAndroid", operator: "xAI", operatorUrl: "https://x.ai", category: "search", respectsRobotsTxt: null, purpose: "AI Search Crawlers" }, { name: "GrokBot", operator: "xAI", operatorUrl: "https://x.ai", category: "training", respectsRobotsTxt: null, purpose: "AI Search Crawlers" }, { name: "Haiku-SearchBot", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "HarkBot", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "HatchFeed", operator: "Meta", operatorUrl: "https://agent.meta.ai", category: "other", respectsRobotsTxt: false, purpose: "AI Assistants" }, { name: "HenkBot", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "Hunyuan", operator: "Tencent", operatorUrl: "https://hunyuan.tencent.com", category: "training", respectsRobotsTxt: null, purpose: "Hunyuan is a training crawler operated by Tencent." }, { name: "iAskBot", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "Undocumented AI Agents" }, { name: "iaskspider", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "Undocumented AI Agents" }, { name: "iaskspider/2.0", operator: "iAsk", category: "other", respectsRobotsTxt: false, purpose: "Crawls sites to provide answers to user queries." }, { name: "ICC-Crawler", operator: "NICT", operatorUrl: "https://nict.go.jp", category: "training", respectsRobotsTxt: true, purpose: "Scrapes data to train and support AI technologies." }, { name: "ImagesiftBot", operator: "ImageSift", operatorUrl: "https://imagesift.com", category: "search", respectsRobotsTxt: true, docsUrl: "https://imagesift.com/about", purpose: "ImageSiftBot is a web crawler that scrapes the internet for publicly available images to support their suite of web intelligence products" }, { name: "imageSpider", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "img2dataset", operator: "img2dataset", operatorUrl: "https://github.com/rom1504/img2dataset", category: "training", respectsRobotsTxt: null, purpose: "Scrapes images for use in LLMs." }, { name: "Instinct", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "ISSCyberRiskCrawler", operator: "ISS-Corporate", operatorUrl: "https://iss-cyber.com", category: "training", respectsRobotsTxt: false, purpose: "Scrapes data to train machine learning models." }, { name: "kagi-fetcher", operator: "Kagi that fetches web content to answer user queries through Kagi AI, their suite of AI-powered tools including Assistant, Res\u2026", category: "assistant", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "Kangaroo Bot", operator: "Unclear at this time.", category: "training", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "KeenableBot", operator: "Keenable", operatorUrl: "https://keenable.ai/", category: "search", respectsRobotsTxt: null, purpose: "AI Search Crawlers" }, { name: "Kimi-Agent", operator: "Moonshot AI that browses websites while carrying out user-directed research and other tasks", category: "assistant", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "Kimi-SearchBot", operator: "Moonshot AI", operatorUrl: "https://www.moonshot.ai", category: "search", respectsRobotsTxt: true, docsUrl: "https://www.kimi.ai/policies/kimi-crawlers", purpose: "AI Search Crawlers" }, { name: "Kimi-User", operator: "Moonshot AI that fetches web content on behalf of users interacting with Kimi", category: "assistant", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "KimiBot", operator: "Moonshot AI", operatorUrl: "https://www.moonshot.ai", category: "training", respectsRobotsTxt: true, docsUrl: "https://www.kimi.ai/policies/kimi-crawlers", purpose: "AI Data Scrapers" }, { name: "KlaviyoAIBot", operator: "Klaviyo", operatorUrl: "https://www.klaviyo.com", category: "other", respectsRobotsTxt: true, docsUrl: "https://help.klaviyo.com/hc/en-us/articles/40496146232219", purpose: "AI Assistants" }, { name: "KunatoCrawler", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "Undocumented AI Agents" }, { name: "laion-huggingface-processor", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "LAIONDownloader", operator: "Large-scale Artificial Intelligence Open Network", operatorUrl: "https://laion.ai/", category: "training", respectsRobotsTxt: false, docsUrl: "https://laion.ai/faq/", purpose: "AI tools and models for machine learning research." }, { name: "LCC", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "Lightpanda", operator: "Anyone who downloads the Lightpanda client. Possibly being used by a [Grok-adjacent](https://github.com/lightpanda-io/browser/issues/3156#issuecomment-5217843616) organization's botnet.", category: "other", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "Liner-User", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "LinerBot", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "Linguee Bot", operator: "Linguee", operatorUrl: "https://www.linguee.com", category: "training", respectsRobotsTxt: false, purpose: "AI powered translation service" }, { name: "LinkupBot", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Search Crawlers" }, { name: "Manus-User", operator: "Butterfly Effect, a company based in China", category: "assistant", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "meta-externalagent", operator: "Meta", operatorUrl: "https://developers.facebook.com/docs/sharing/webmasters/web-crawlers", category: "training", respectsRobotsTxt: true, purpose: "Used to train models and improve products." }, { name: "Meta-ExternalAgent", operator: "Unclear at this time.", category: "training", respectsRobotsTxt: true, docsUrl: "https://developers.facebook.com/docs/sharing/webmasters/web-crawlers/", purpose: "AI Data Scrapers" }, { name: "meta-externalfetcher", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: false, docsUrl: "https://developers.facebook.com/docs/sharing/webmasters/web-crawlers/", purpose: "AI Assistants" }, { name: "Meta-ExternalFetcher", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: false, docsUrl: "https://developers.facebook.com/docs/sharing/webmasters/web-crawlers/", purpose: "AI Assistants" }, { name: "meta-webindexer", operator: "Meta", operatorUrl: "https://developers.facebook.com/docs/sharing/webmasters/web-crawlers/", category: "search", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "MiniMaxAgent", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "MistralAI-Index", operator: "Mistral AI", category: "search", respectsRobotsTxt: true, purpose: "Indexes web content for Mistral AI's search, used to answer questions in Le Chat. Per Mistral, not used for model training." }, { name: "MistralAI-Training", operator: "Mistral AI", operatorUrl: "https://mistral.ai", category: "training", respectsRobotsTxt: true, docsUrl: "https://docs.mistral.ai/robots/", purpose: "AI Data Scrapers" }, { name: "MistralAI-User", operator: "Mistral", category: "assistant", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "MistralAI-User/1.0", operator: "Mistral AI", category: "assistant", respectsRobotsTxt: true, purpose: "Takes action based on user prompts." }, { name: "MoonshotBot", operator: "Kimi", operatorUrl: "https://www.kimi.ai/", category: "training", respectsRobotsTxt: null, purpose: "MoonshotBot is a training crawler." }, { name: "Mozilla-Tabstack", operator: "Mozilla that performs programmatic, AI-driven interactions with web content through Tabstack", category: "other", respectsRobotsTxt: true, purpose: "AI Data Providers" }, { name: "Muse", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "MyCentralAIScraperBot", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI data scraper" }, { name: "NagetBot", operator: "Naget Inc (founded by Chris Samarinas, headquarter in Amherst, Massachusetts)", category: "other", respectsRobotsTxt: null, purpose: "AI data scraper" }, { name: "nbot", operator: "NBot", operatorUrl: "https://nbot.ai", category: "search", respectsRobotsTxt: null, purpose: "AI Search Crawlers" }, { name: "netEstate Imprint Crawler", operator: "netEstate", category: "other", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "newsai", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI data scraper" }, { name: "NotebookLM", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "NovaAct", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "OAI-AdsBot", operator: "OpenAI", operatorUrl: "https://openai.com", category: "training", respectsRobotsTxt: null, purpose: "Validates and targets ads on ChatGPT." }, { name: "OAI-SearchBot", operator: "OpenAI", operatorUrl: "https://openai.com", category: "search", respectsRobotsTxt: true, docsUrl: "https://platform.openai.com/docs/bots", purpose: "Search result generation." }, { name: "omgili", operator: "Webz.io", operatorUrl: "https://webz.io/", category: "training", respectsRobotsTxt: true, docsUrl: "https://webz.io/blog/web-data/what-is-the-omgili-bot-and-why-is-it-crawling-your-website/", purpose: "Data is sold." }, { name: "omgilibot", operator: "Webz.io", operatorUrl: "https://webz.io/", category: "search", respectsRobotsTxt: true, docsUrl: "https://web.archive.org/web/20170704003301/http://omgili.com/Crawler.html", purpose: "Data is sold." }, { name: "OpenAI", operator: "OpenAI", operatorUrl: "https://openai.com", category: "other", respectsRobotsTxt: true, purpose: "Unclear at this time." }, { name: "opencode", operator: "Unclear at this time.", category: "training", respectsRobotsTxt: null, purpose: "AI Coding Agents" }, { name: "Operator", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "PanguBot", operator: "the Chinese company Huawei", category: "training", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "Panscient", operator: "Panscient", operatorUrl: "https://panscient.com", category: "training", respectsRobotsTxt: true, docsUrl: "https://panscient.com/faq.htm", purpose: "Data collection and analysis using machine learning and AI." }, { name: "panscient.com", operator: "Panscient", operatorUrl: "https://panscient.com", category: "training", respectsRobotsTxt: true, docsUrl: "https://panscient.com/faq.htm", purpose: "Data collection and analysis using machine learning and AI." }, { name: "Payhawk Invoice Fetching Agent", operator: "Payhawk that retrieves invoices from supplier websites for users and attaches them to expense records", category: "assistant", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "Perplexity-User", operator: "Perplexity", operatorUrl: "https://www.perplexity.ai/", category: "assistant", respectsRobotsTxt: false, docsUrl: "https://docs.perplexity.ai/guides/bots", purpose: "AI Assistants" }, { name: "PerplexityBot", operator: "Perplexity", operatorUrl: "https://www.perplexity.ai/", category: "search", respectsRobotsTxt: true, docsUrl: "https://docs.perplexity.ai/guides/bots", purpose: "Search result generation." }, { name: "PetalBot", operator: "Huawei", operatorUrl: "https://huawei.com/", category: "search", respectsRobotsTxt: true, purpose: "Used to provide recommendations in Hauwei assistant and AI search services.", note: "Huawei's search engine crawler (Petal Search)." }, { name: "PhindBot", operator: "phind", operatorUrl: "https://www.phind.com/", category: "search", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "Poggio-Citations", operator: "Poggio, a company that provides AI sales enablement tools for creating tailored narratives, business cases, and account plan\u2026", category: "other", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "Poseidon Research Crawler", operator: "Poseidon Research", operatorUrl: "https://www.poseidonresearch.com", category: "search", respectsRobotsTxt: null, purpose: "AI research crawler" }, { name: "qodercli", operator: "Qoder that helps developers build, debug, and modify software from the terminal", category: "other", respectsRobotsTxt: null, purpose: "AI Coding Agents" }, { name: "QualifiedBot", operator: "Qualified", operatorUrl: "https://www.qualified.com", category: "other", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "Querit-SearchBot", operator: "Querit that indexes web content for their search API service, which is designed to provide real-time search results for larg\u2026", category: "search", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "QueritBot", operator: "Querit, a company providing a search API for large language model integration", category: "search", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "QuillBot", operator: "Quillbot", operatorUrl: "https://quillbot.com", category: "other", respectsRobotsTxt: null, purpose: "Company offers AI detection, writing tools and other services." }, { name: "quillbot.com", operator: "Quillbot", operatorUrl: "https://quillbot.com", category: "other", respectsRobotsTxt: null, purpose: "Company offers AI detection, writing tools and other services." }, { name: "QwenBot", operator: "Alibaba", category: "other", respectsRobotsTxt: null, purpose: "Collects public web content for Alibaba's Qwen (Tongyi Qianwen) large language models." }, { name: "Reflectionbot", operator: "Reflection", operatorUrl: "https://reflection.ai/", category: "other", respectsRobotsTxt: null, purpose: "Undocumented AI Agents" }, { name: "SBIntuitionsBot", operator: "SB Intuitions", operatorUrl: "https://www.sbintuitions.co.jp/en/", category: "other", respectsRobotsTxt: true, docsUrl: "https://www.sbintuitions.co.jp/en/bot/", purpose: "Uses data gathered in AI development and information analysis." }, { name: "Scrapy", operator: "Zyte", operatorUrl: "https://www.zyte.com", category: "training", respectsRobotsTxt: null, purpose: "Scrapes data for a variety of uses including training AI." }, { name: "ScryBot", operator: "Scry", operatorUrl: "https://scry.io/", category: "other", respectsRobotsTxt: null, purpose: "Used with AI agents to scrape data for answers to queries" }, { name: "SemrushBot-OCOB", operator: "Semrush", operatorUrl: "https://www.semrush.com/", category: "other", respectsRobotsTxt: true, docsUrl: "https://www.semrush.com/bot/", purpose: "Crawls your site for ContentShake AI tool." }, { name: "SemrushBot-SWA", operator: "Semrush", operatorUrl: "https://www.semrush.com/", category: "other", respectsRobotsTxt: true, docsUrl: "https://www.semrush.com/bot/", purpose: "Checks URLs on your site for SEO Writing Assistant." }, { name: "Shap-User", operator: "Unclear at this time.", category: "assistant", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "ShapBot", operator: "Parallel", operatorUrl: "https://parallel.ai", category: "search", respectsRobotsTxt: true, docsUrl: "https://docs.parallel.ai/features/crawler", purpose: "AI Data Providers" }, { name: "Sidetrade indexer bot", operator: "Sidetrade", operatorUrl: "https://www.sidetrade.com", category: "search", respectsRobotsTxt: null, purpose: "Extracts data for a variety of uses including training AI." }, { name: "Spider", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "TavilyBot", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "Terra Cotta", operator: "Unclear at this time.", category: "training", respectsRobotsTxt: null, purpose: "AI Data Providers" }, { name: "TerraCotta", operator: "Ceramic AI", operatorUrl: "https://ceramic.ai/", category: "training", respectsRobotsTxt: true, docsUrl: "https://github.com/CeramicTeam/CeramicTerracotta", purpose: "AI Data Providers" }, { name: "Thinkbot", operator: "Thinkbot", operatorUrl: "https://www.thinkbot.agency", category: "other", respectsRobotsTxt: false, purpose: "Insights on AI integration and automation." }, { name: "TikTokSpider", operator: "ByteDance", category: "training", respectsRobotsTxt: null, purpose: "LLM training." }, { name: "Timpibot", operator: "Timpi", operatorUrl: "https://timpi.io", category: "training", respectsRobotsTxt: null, purpose: "Scrapes data for use in training LLMs." }, { name: "TongyiBot", operator: "Alibaba that fetches web content for the Tongyi Qianwen assistant and related Qwen-generated answers", category: "other", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "Trae", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Coding Agents" }, { name: "TwinAgent", operator: "Twin, a platform that creates automated workers to perform tasks by integrating with APIs and controlling web applications through browser automa\u2026", category: "assistant", respectsRobotsTxt: null, purpose: "AI Agents" }, { name: "UseAI", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "VelenPublicWebCrawler", operator: "Velen Crawler", operatorUrl: "https://velen.io", category: "training", respectsRobotsTxt: true, docsUrl: "https://velen.io", purpose: "Scrapes data for business data sets and machine learning models." }, { name: "WARDBot", operator: "WEBSPARK", category: "other", respectsRobotsTxt: null, purpose: "AI Data Scrapers" }, { name: "webzio-extended", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "AI Data Scrapers", robotsTxtOnly: true }, { name: "Webzio-Extended", operator: "Unclear at this time.", category: "training", respectsRobotsTxt: null, purpose: "AI Data Scrapers", robotsTxtOnly: true }, { name: "wpbot", operator: "QuantumCloud", operatorUrl: "https://www.quantumcloud.com", category: "other", respectsRobotsTxt: null, purpose: "Live chat support and lead generation." }, { name: "WRTNBot", operator: "Unclear at this time.", category: "other", respectsRobotsTxt: null, purpose: "Undocumented AI Agents" }, { name: "xAI-Grok", operator: "xAI", operatorUrl: "https://x.ai/", category: "training", respectsRobotsTxt: null, purpose: "xAI-Grok is an xAI crawler token associated with Grok content collection." }, { name: "YaK", operator: "Meltwater", operatorUrl: "https://www.meltwater.com/en/suite/consumer-intelligence", category: "search", respectsRobotsTxt: null, purpose: "According to the [Meltwater Consumer Intelligence page](https://www.meltwater.com/en/suite/consumer-intelligence) 'By applying AI, data science, and market research expertise to a live feed of global data sources, we transform unstructured data into actionable insights allowing better decision-making'." }, { name: "YandexAdditional", operator: "Yandex", operatorUrl: "https://yandex.ru", category: "training", respectsRobotsTxt: true, docsUrl: "https://yandex.ru/support/webmaster/en/search-appearance/fast.html?lang=en", purpose: "Scrapes/analyzes data for the YandexGPT LLM.", note: "Yandex's crawler for AI features; Yandex Search uses YandexBot." }, { name: "YandexAdditionalBot", operator: "Yandex", operatorUrl: "https://yandex.ru", category: "training", respectsRobotsTxt: true, docsUrl: "https://yandex.ru/support/webmaster/en/search-appearance/fast.html?lang=en", purpose: "Scrapes/analyzes data for the YandexGPT LLM.", note: "Yandex's crawler for AI features; Yandex Search uses YandexBot." }, { name: "YiBot", operator: "[01.ai](https://01.ai/), an AI company founded by Kai-Fu Lee.", category: "training", respectsRobotsTxt: null, purpose: "This bot crawls the web to gather data and content for indexation and AI model training." }, { name: "YiyanBot", operator: "Baidu that fetches web content for the yiyan", category: "other", respectsRobotsTxt: null, purpose: "AI Assistants" }, { name: "YouBot", operator: "You", operatorUrl: "https://about.you.com/youchat/", category: "search", respectsRobotsTxt: true, docsUrl: "https://about.you.com/youbot/", purpose: "Scrapes data for search engine and LLMs." }, { name: "ZanistaBot", operator: "Unclear at this time.", category: "search", respectsRobotsTxt: null, purpose: "AI Search Crawlers" }] };
38
+
39
+ // src/bots.ts
40
+ var bots = bots_compact_default.bots;
41
+ var updated = bots_compact_default.updated;
42
+ var categories = ["training", "search", "assistant", "other"];
43
+ function select(options = {}) {
44
+ const cats = options.categories ? new Set(options.categories) : void 0;
45
+ const allow = new Set(options.allow ?? []);
46
+ return bots.filter((b) => (!cats || cats.has(b.category)) && !allow.has(b.name));
47
+ }
48
+
49
+ // src/match.ts
50
+ var escape = (s) => s.replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
51
+ function pattern(names2) {
52
+ const list = [...new Set(names2)].sort((a, b) => b.length - a.length).map(escape);
53
+ return `(?:^|[^A-Za-z0-9])(${list.join("|")})(?:$|[^A-Za-z0-9])`;
54
+ }
55
+ var cache = /* @__PURE__ */ new Map();
56
+ function matcher(options) {
57
+ const key = JSON.stringify([options.categories ?? null, options.allow ?? null]);
58
+ let m = cache.get(key);
59
+ if (!m) {
60
+ const list = select(options).filter((b) => !b.robotsTxtOnly);
61
+ m = { re: new RegExp(pattern(list.map((b) => b.name))), byName: new Map(list.map((b) => [b.name, b])) };
62
+ if (cache.size > 50) cache.clear();
63
+ cache.set(key, m);
64
+ }
65
+ return m;
66
+ }
67
+ function isAIBot(userAgent, options = {}) {
68
+ if (typeof userAgent !== "string" || !userAgent) return null;
69
+ const { re, byName } = matcher(options);
70
+ const m = re.exec(userAgent);
71
+ return m ? byName.get(m[1]) ?? null : null;
72
+ }
73
+
74
+ // src/robots.ts
75
+ function robotsTxt(options = {}) {
76
+ const names2 = [...new Set(select(options).map((b) => b.name))];
77
+ const lines = [];
78
+ if (options.comment !== false) lines.push("# AI crawlers, blocked with noaibot: https://github.com/ckgiri/noaibot");
79
+ for (const n of names2) lines.push(`User-agent: ${n}`);
80
+ if (names2.length) lines.push("Disallow: /");
81
+ let out = lines.join("\n") + "\n";
82
+ if (options.append?.trim()) out += "\n" + options.append.trim() + "\n";
83
+ return out;
84
+ }
85
+
86
+ // src/block.ts
87
+ var DEFAULT_MESSAGE = "AI crawlers are not allowed on this site.";
88
+ function robotsBody(o) {
89
+ return robotsTxt(typeof o.serveRobotsTxt === "object" ? o.serveRobotsTxt : { categories: o.categories, allow: o.allow });
90
+ }
91
+ function block(request, options = {}) {
92
+ let path = "/";
93
+ try {
94
+ path = new URL(request.url).pathname;
95
+ } catch {
96
+ }
97
+ if (options.serveRobotsTxt && path === "/robots.txt" && (request.method === "GET" || request.method === "HEAD")) {
98
+ return new Response(request.method === "HEAD" ? null : robotsBody(options), { headers: { "content-type": "text/plain; charset=utf-8" } });
99
+ }
100
+ if ((options.allowPaths ?? ["/robots.txt"]).includes(path)) return void 0;
101
+ const ua = request.headers.get("user-agent") ?? "";
102
+ const bot = isAIBot(ua, options);
103
+ if (!bot) return void 0;
104
+ options.onBlock?.(bot, ua);
105
+ return new Response(options.message ?? DEFAULT_MESSAGE, { status: options.status ?? 403, headers: { "content-type": "text/plain; charset=utf-8" } });
106
+ }
107
+ function noaibot(options = {}) {
108
+ return (req, res, next) => {
109
+ const path = (req.url ?? "/").split("?")[0] || "/";
110
+ const method = (req.method ?? "GET").toUpperCase();
111
+ if (options.serveRobotsTxt && path === "/robots.txt" && (method === "GET" || method === "HEAD")) {
112
+ res.statusCode = 200;
113
+ res.setHeader("content-type", "text/plain; charset=utf-8");
114
+ res.end(method === "HEAD" ? void 0 : robotsBody(options));
115
+ return;
116
+ }
117
+ if (!(options.allowPaths ?? ["/robots.txt"]).includes(path)) {
118
+ const raw = req.headers["user-agent"];
119
+ const ua = Array.isArray(raw) ? raw.join(" ") : raw ?? "";
120
+ const bot = isAIBot(ua, options);
121
+ if (bot) {
122
+ options.onBlock?.(bot, ua);
123
+ res.statusCode = options.status ?? 403;
124
+ res.setHeader("content-type", "text/plain; charset=utf-8");
125
+ res.end(options.message ?? DEFAULT_MESSAGE);
126
+ return;
127
+ }
128
+ }
129
+ next?.();
130
+ };
131
+ }
132
+
133
+ // src/server.ts
134
+ var names = (o) => [...new Set(select(o).filter((b) => !b.robotsTxtOnly).map((b) => b.name))];
135
+ function serverRules(format, options = {}) {
136
+ const list = names(options);
137
+ const re = pattern(list);
138
+ const head = "# AI crawlers, blocked with noaibot: https://github.com/ckgiri/noaibot";
139
+ switch (format) {
140
+ case "nginx":
141
+ return [
142
+ head,
143
+ "# 1. In the http { } block:",
144
+ "map $http_user_agent $noaibot {",
145
+ " default 0;",
146
+ ` "~${re.replace(/"/g, '\\"')}" 1;`,
147
+ "}",
148
+ "",
149
+ "# 2. In each server { } block:",
150
+ "# if ($noaibot) { return 403; }",
151
+ ""
152
+ ].join("\n");
153
+ case "apache":
154
+ return [head, "# For .htaccess or a <VirtualHost> (needs mod_rewrite).", "RewriteEngine On", `RewriteCond "%{HTTP_USER_AGENT}" "${re.replace(/"/g, '\\"')}"`, "RewriteRule !^/?robots\\.txt$ - [F]", ""].join("\n");
155
+ case "caddy":
156
+ return [head, "# Inside your site block.", "@noaibot {", ` header_regexp User-Agent "${re.replace(/"/g, '\\"')}"`, " not path /robots.txt", "}", "respond @noaibot 403", ""].join("\n");
157
+ case "haproxy":
158
+ return list.join("\n") + "\n";
159
+ default:
160
+ throw new TypeError(`noaibot: unknown server format "${String(format)}". Use nginx, apache, caddy or haproxy.`);
161
+ }
162
+ }