From 40d90757bfd155c49f1ac14877ecf24eb7a8ecbb Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Sat, 6 Aug 2022 04:27:03 -0400 Subject: [PATCH] Added more bot test cases --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 5608474..ab7f496 100644 --- a/src/server.ts +++ b/src/server.ts @@ -17,7 +17,7 @@ const statusRequest = async ( const userAgent = request.headers.get('User-Agent') || ''; const isBotUA = - userAgent.match(/bot|facebook|embed|got|firefox\/92|curl|wget/gi) !== null; + userAgent.match(/bot|facebook|embed|got|firefox\/92|curl|wget|go-http|yahoo|generator|whatsapp|preview|link|proxy|vkshare|images|analyzer|index|crawl|spider/gi) !== null; if ( url.pathname.match(/\/status(es)?\/\d+\.(mp4|png|jpg)/g) !== null ||