3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the Revised BSD License.
6 This program is distributed in the hope that it will be useful,
7 but WITHOUT ANY WARRANTY; without even the implied warranty of
8 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 Revised BSD License for more details.
11 Copyright 2004-2010 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2010 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: useragents.php - Last Update: 09/06/2010 SVN 582 - Author: cooldude2k $
17 function user_agent_check($user_agent) {
18 if (preg_match("/".preg_quote("AboutUsBot")."/i", $user_agent)) {
20 if (preg_match("/".preg_quote("ia_archiver")."/i", $user_agent)) {
22 if (preg_match("/".preg_quote("AltaVista")."/i", $user_agent)) {
24 if (preg_match("/".preg_quote("Ask Jeeves")."/i", $user_agent)) {
25 return "Ask Jeeves"; }
26 if (preg_match("/".preg_quote("Baiduspider")."/i", $user_agent)) {
28 if (preg_match("/".preg_quote("BaiduImagespider")."/i", $user_agent)) {
30 if (preg_match("/".preg_quote("msnbot")."/i", $user_agent)) {
32 if (preg_match("/".preg_quote("CCBot")."/i", $user_agent)) {
33 return "CommonCrawl"; }
34 if (preg_match("/".preg_quote("CSE HTML Validator")."/i", $user_agent)) {
35 return "CSE HTML Validator"; }
36 if (preg_match("/".preg_quote("discobot")."/i", $user_agent)) {
37 return "DiscoveryEngine"; }
38 if (preg_match("/".preg_quote("DnsQueries")."/i", $user_agent)) {
39 return "DNSQueries"; }
40 if (preg_match("/".preg_quote("Exabot")."/i", $user_agent)) {
42 if (preg_match("/".preg_quote("facebookexternalhit")."/i", $user_agent)) {
44 if (preg_match("/".preg_quote("GIDBot")."/i", $user_agent)) {
45 return "GIDNetwork"; }
46 if (preg_match("/".preg_quote("ichiro")."/i", $user_agent)) {
48 if (preg_match("/".preg_quote("moget")."/i", $user_agent)) {
50 if (preg_match("/".preg_quote("mogimogi")."/i", $user_agent)) {
52 if (preg_match("/".preg_quote("AdsBot-Google")."/i", $user_agent)) {
54 if (preg_match("/".preg_quote("AppEngine-Google")."/i", $user_agent)) {
56 if (preg_match("/".preg_quote("Googlebot")."/i", $user_agent)) {
58 if (preg_match("/".preg_quote("Mediapartners-Google")."/i", $user_agent)) {
60 if (preg_match("/".preg_quote("Hailoobot")."/i", $user_agent)) {
62 if (preg_match("|".preg_quote("HTML/XML Validator","|")."|i", $user_agent)) {
63 return "HTML/XML Validator"; }
64 if (preg_match("|".preg_quote("iDB-VerCheck","|")."|i", $user_agent)) {
65 return "iDB Version Checker"; }
66 if (preg_match("/".preg_quote("Lycos")."/i", $user_agent)) {
68 if (preg_match("/".preg_quote("montastic-webmonitor")."/i", $user_agent)) {
70 if (preg_match("/".preg_quote("NetSprint")."/i", $user_agent)) {
72 if (preg_match("/".preg_quote("smerity")."/i", $user_agent)) {
74 if (preg_match("/".preg_quote("ScoutJet")."/i", $user_agent)) {
76 if (preg_match("/".preg_quote("Sogou")."/i", $user_agent)) {
78 if (preg_match("/".preg_quote("Sosospider")."/i", $user_agent)) {
80 if (preg_match("/".preg_quote("Speedy Spider")."/i", $user_agent)) {
82 if (preg_match("/".preg_quote("Szukacz")."/i", $user_agent)) {
83 return "Szukacz.pl"; }
84 if (preg_match("/".preg_quote("TotalValidator")."/i", $user_agent)) {
85 return "Total Validator"; }
86 if (preg_match("/".preg_quote("Validator.nu")."/i", $user_agent)) {
87 return "Validator.nu"; }
88 if (preg_match("/".preg_quote("W3C-checklink")."/i", $user_agent)) {
89 return "W3C Checklink"; }
90 if (preg_match("/".preg_quote("FeedValidator")."/i", $user_agent)) {
91 return "W3C Validator"; }
92 if (preg_match("/".preg_quote("W3C_CSS_Validator")."/i", $user_agent)) {
93 return "W3C Validator"; }
94 if (preg_match("/".preg_quote("W3C_Validator")."/i", $user_agent)) {
95 return "W3C Validator"; }
96 if (preg_match("/".preg_quote("WDG_SiteValidator")."/i", $user_agent)) {
97 return "WDG Validator"; }
98 if (preg_match("/".preg_quote("WDG_Validator")."/i", $user_agent)) {
99 return "WDG Validator"; }
100 if (preg_match("/".preg_quote("HTTP Compression Test")."/i", $user_agent)) {
101 return "WhatsMyIP"; }
102 if (preg_match("/".preg_quote("Yahoo")."/i", $user_agent)) {
104 if (preg_match("/".preg_quote("Yandex")."/i", $user_agent)) {