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 (parent:
c9485ba
)
Detect more robots
author
Joey Schulze
<joey@infodrom.org>
Sun, 29 Aug 2010 10:17:59 +0000
(10:17 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Sun, 29 Aug 2010 10:17:59 +0000
(10:17 +0000)
lib/core.inc
patch
|
blob
|
history
diff --git
a/lib/core.inc
b/lib/core.inc
index
774b43f
..
9a39761
100644
(file)
--- a/
lib/core.inc
+++ b/
lib/core.inc
@@
-175,6
+175,11
@@
function is_spider()
strpos($_SERVER['HTTP_USER_AGENT'], 'XmarksFetch/1.0') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'spbot/2.0') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'TinEye/1.1') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'XmarksFetch/1.0') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'spbot/2.0') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'TinEye/1.1') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'TurnitinBot/2.1') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'CligooRobot/1.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'libwww-perl') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Wget') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Python-urllib') !== 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;