Updated useragents list.
[iDB.git] / inc / misc / useragents.php
blobcc0a872d519ec9181ff30d4a15cbb05688009a16
1 <?php
2 /*
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 $
16 // User Agent Checker
17 function user_agent_check($user_agent) {
18 if (preg_match("/".preg_quote("AboutUsBot")."/i", $user_agent)) {
19 return "AboutUs"; }
20 if (preg_match("/".preg_quote("ia_archiver")."/i", $user_agent)) {
21 return "Alexa"; }
22 if (preg_match("/".preg_quote("AltaVista")."/i", $user_agent)) {
23 return "AltaVista"; }
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)) {
27 return "Baidu"; }
28 if (preg_match("/".preg_quote("BaiduImagespider")."/i", $user_agent)) {
29 return "Baidu"; }
30 if (preg_match("/".preg_quote("msnbot")."/i", $user_agent)) {
31 return "Bing"; }
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)) {
41 return "Exabot"; }
42 if (preg_match("/".preg_quote("facebookexternalhit")."/i", $user_agent)) {
43 return "Facebook"; }
44 if (preg_match("/".preg_quote("GIDBot")."/i", $user_agent)) {
45 return "GIDNetwork"; }
46 if (preg_match("/".preg_quote("ichiro")."/i", $user_agent)) {
47 return "Goo Japan"; }
48 if (preg_match("/".preg_quote("moget")."/i", $user_agent)) {
49 return "Goo Japan"; }
50 if (preg_match("/".preg_quote("mogimogi")."/i", $user_agent)) {
51 return "Goo Japan"; }
52 if (preg_match("/".preg_quote("AdsBot-Google")."/i", $user_agent)) {
53 return "Google"; }
54 if (preg_match("/".preg_quote("AppEngine-Google")."/i", $user_agent)) {
55 return "Google"; }
56 if (preg_match("/".preg_quote("Googlebot")."/i", $user_agent)) {
57 return "Google"; }
58 if (preg_match("/".preg_quote("Mediapartners-Google")."/i", $user_agent)) {
59 return "Google"; }
60 if (preg_match("/".preg_quote("Hailoobot")."/i", $user_agent)) {
61 return "Hailoo"; }
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)) {
67 return "Lycos"; }
68 if (preg_match("/".preg_quote("montastic-webmonitor")."/i", $user_agent)) {
69 return "Montastic"; }
70 if (preg_match("/".preg_quote("NetSprint")."/i", $user_agent)) {
71 return "NetSprint"; }
72 if (preg_match("/".preg_quote("smerity")."/i", $user_agent)) {
73 return "Schwa Lab"; }
74 if (preg_match("/".preg_quote("ScoutJet")."/i", $user_agent)) {
75 return "ScoutJet"; }
76 if (preg_match("/".preg_quote("Sogou")."/i", $user_agent)) {
77 return "Sogou"; }
78 if (preg_match("/".preg_quote("Sosospider")."/i", $user_agent)) {
79 return "Soso"; }
80 if (preg_match("/".preg_quote("Speedy Spider")."/i", $user_agent)) {
81 return "Speedy"; }
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)) {
103 return "Yahoo"; }
104 if (preg_match("/".preg_quote("Yandex")."/i", $user_agent)) {
105 return "Yandex"; }
106 return false; }