This website works better with JavaScript.
Home
Explore
Help
Sign In
writeas
/
web-core
mirror of
https://github.com/writeas/web-core
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Activity
Browse Source
Mark PHP clients as bots
master
Matt Baer
6 years ago
parent
b80eea5454
commit
e082f1e402
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
bots/bots.go
+ 1
- 0
bots/bots.go
View 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
Write
Preview
Loading…
Cancel
Save