From 46e29596eb9935eadf86e4f059174c1561f42c57 Mon Sep 17 00:00:00 2001 From: Akmal Date: Thu, 28 Dec 2023 09:50:20 +0700 Subject: [PATCH] Add more bot user agent Taken from FxTwitter --- utils/crawlerdetect.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/crawlerdetect.go b/utils/crawlerdetect.go index 16f477f..588d781 100644 --- a/utils/crawlerdetect.go +++ b/utils/crawlerdetect.go @@ -32,6 +32,10 @@ var knownBots = [][]byte{ []byte("mastodon"), []byte("http.rb"), []byte("discord"), + []byte("ruby"), + []byte("bun/"), + []byte("fiddler"), + []byte("revoltchat"), } func IsBot(userAgent []byte) bool {