Skip to content

Commit

Permalink
Add more bot user agent
Browse files Browse the repository at this point in the history
Taken from FxTwitter
  • Loading branch information
Wikidepia committed Dec 28, 2023
1 parent 102583e commit 46e2959
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/crawlerdetect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 46e2959

Please sign in to comment.