Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(web): detect Iframely crawler user agents
Richie McIlroyadad44c98414
diff --git a/apps/web/lib/social-crawlers.ts b/apps/web/lib/social-crawlers.tsindex 886ae7dd8..909060795 100644--- a/apps/web/lib/social-crawlers.ts+++ b/apps/web/lib/social-crawlers.ts@@ -1,3 +1,5 @@+const IFRAMELY_USER_AGENT_PATTERN = "iframely/";+const SOCIAL_CRAWLER_USER_AGENT_PATTERNS = ["twitterbot","facebookexternalhit",@@ -12,6 +14,7 @@ const SOCIAL_CRAWLER_USER_AGENT_PATTERNS = ["pinterestbot","redditbot","embedly",+ IFRAMELY_USER_AGENT_PATTERN,] as const;export const SOCIAL_REFERRER_DOMAINS = [@@ -34,3 +37,7 @@ export function isSocialCrawlerUserAgent(userAgent: string) {normalizedUserAgent.includes(pattern),);}++export function isIframelyCrawlerUserAgent(userAgent: string) {+ return userAgent.toLowerCase().includes(IFRAMELY_USER_AGENT_PATTERN);+}