From bbb65ad12d0a8bab3b9b6b693e2de395c4acf4a0 Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Sun, 29 Aug 2010 10:17:59 +0000 Subject: [PATCH] Detect more robots --- lib/core.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/core.inc b/lib/core.inc index 774b43f..9a39761 100644 --- 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'], '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; -- 2.20.1