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:
20a6999
)
New spider: Baiduspider
author
Joey Schulze
<joey@infodrom.org>
Tue, 23 Sep 2008 07:38:32 +0000
(07:38 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Tue, 23 Sep 2008 07:38:32 +0000
(07:38 +0000)
lib/core.inc
patch
|
blob
|
history
diff --git
a/lib/core.inc
b/lib/core.inc
index
bb5141b
..
b6fa783
100644
(file)
--- a/
lib/core.inc
+++ b/
lib/core.inc
@@
-150,6
+150,7
@@
function is_spider()
strpos($_SERVER['HTTP_USER_AGENT'], 'Yanga WorldSearch Bot') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'Semager') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'DotBot') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Baiduspider') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'Cityreview Robot') !== false) {
if (isset($_SESSION['uid']))
$_SESSION['robot'] = true;