Added more bot test cases

This commit is contained in:
dangered wolf 2022-08-06 04:27:03 -04:00
parent fbecb189d4
commit 40d90757bf
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -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 ||