projects
/
infodrom.org
/
www.zeitungsliste.de
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8dc1960
)
Add more bots
author
Joey Schulze
<joey@infodrom.org>
Sun, 2 Feb 2014 11:35:29 +0000
(11:35 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Sun, 2 Feb 2014 11:35:29 +0000
(11:35 +0000)
lib/core.inc
patch
|
blob
|
history
diff --git
a/lib/core.inc
b/lib/core.inc
index
05680a5
..
0365114
100644
(file)
--- a/
lib/core.inc
+++ b/
lib/core.inc
@@
-209,6
+209,11
@@
function is_spider()
strpos($_SERVER['HTTP_USER_AGENT'], 'discoverybot/2.0') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'SemrushBot/') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'archive.org_bot') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'discoverybot/2.0') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'SemrushBot/') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'archive.org_bot') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'waybackarchive.org/1.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'spbot/4.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Mail.RU_Bot/2.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'linkdexbot/2.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'webmeup-crawler.com') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'Cityreview Robot') !== false) {
if (isset($_SESSION['uid']))
$_SESSION['robot'] = true;
strpos($_SERVER['HTTP_USER_AGENT'], 'Cityreview Robot') !== false) {
if (isset($_SESSION['uid']))
$_SESSION['robot'] = true;