Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add bluesky to detectBot

Steven Tey7491480bd4d5
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,
);
}