Mark PHP clients as bots
This commit is contained in:
@@ -219,6 +219,7 @@ var bots = map[string]bool{
|
|||||||
|
|
||||||
var botPrefixes = []string{
|
var botPrefixes = []string{
|
||||||
"http.rb/2.2.2 (Mastodon",
|
"http.rb/2.2.2 (Mastodon",
|
||||||
|
"PHP/",
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsBot returns whether or not the provided User-Agent string is a known bot
|
// IsBot returns whether or not the provided User-Agent string is a known bot
|
||||||
|
|||||||
Reference in New Issue
Block a user