Sfoglia il codice sorgente

Mark PHP clients as bots

master
Matt Baer 6 anni fa
parent
commit
e082f1e402
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      bots/bots.go

+ 1
- 0
bots/bots.go Vedi File

@@ -219,6 +219,7 @@ var bots = map[string]bool{

var botPrefixes = []string{
"http.rb/2.2.2 (Mastodon",
"PHP/",
}

// IsBot returns whether or not the provided User-Agent string is a known bot


Caricamento…
Annulla
Salva