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:
62b569b
)
Two more bots to handle
author
Joey Schulze
<joey@infodrom.org>
Fri, 7 Aug 2009 19:48:16 +0000
(19:48 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Fri, 7 Aug 2009 19:48:16 +0000
(19:48 +0000)
lib/core.inc
patch
|
blob
|
history
diff --git
a/lib/core.inc
b/lib/core.inc
index
67e91ee
..
1242912
100644
(file)
--- a/
lib/core.inc
+++ b/
lib/core.inc
@@
-170,6
+170,8
@@
function is_spider()
strpos($_SERVER['HTTP_USER_AGENT'], 'Nutch-1.0') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'Tagoobot/3.0') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'SapphireWebCrawler/1.0') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'Nutch-1.0') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'Tagoobot/3.0') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'SapphireWebCrawler/1.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'BotOnParade') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'SurveyBot/2.3') !== 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;