From 7491480bd4d5facd704312357a17e5ac75b13b21 Mon Sep 17 00:00:00 2001 From: Steven Tey Date: Wed, 13 Nov 2024 22:16:20 -0800 Subject: [PATCH] add bluesky to detectBot --- apps/web/lib/middleware/utils/detect-bot.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/lib/middleware/utils/detect-bot.ts b/apps/web/lib/middleware/utils/detect-bot.ts index 74f6801018..c6a94abfba 100644 --- a/apps/web/lib/middleware/utils/detect-bot.ts +++ b/apps/web/lib/middleware/utils/detect-bot.ts @@ -6,13 +6,14 @@ export const detectBot = (req: Request) => { /* Note: * - bot is for most bots & crawlers * - ChatGPT is for ChatGPT + * - bluesky is for Bluesky crawler * - facebookexternalhit is for Facebook crawler * - WhatsApp is for WhatsApp crawler * - MetaInspector is for https://metatags.io/ * - Go-http-client/1.1 is a bot: https://user-agents.net/string/go-http-client-1-1 * - iframely is for https://iframely.com/docs/about (used by Notion, Linear) */ - return /bot|chatgpt|facebookexternalhit|WhatsApp|google|baidu|bing|msn|duckduckbot|teoma|slurp|yandex|MetaInspector|Go-http-client|iframely/i.test( + return /bot|chatgpt|bluesky|facebookexternalhit|WhatsApp|google|baidu|bing|msn|duckduckbot|teoma|slurp|yandex|MetaInspector|Go-http-client|iframely/i.test( ua, ); }