Small update to iBBCode / iBBTags.
[iDB.git] / inc / misc / useragents.php
blobce3c0295266cc3c70be99600832b01aaf7f888b1
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-2011 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: useragents.php - Last Update: 01/20/2011 SVN 617 - 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("AlkalineBot")."/i", $user_agent)) {
23 return "Alkaline"; }
24 if (preg_match("/".preg_quote("AltaVista")."/i", $user_agent)) {
25 return "AltaVista"; }
26 if (preg_match("/".preg_quote("Ask Jeeves")."/i", $user_agent)) {
27 return "Ask Jeeves"; }
28 if (preg_match("/".preg_quote("ASPseek")."/i", $user_agent)) {
29 return "ASPseek"; }
30 if (preg_match("/".preg_quote("Baiduspider")."/i", $user_agent)) {
31 return "Baidu"; }
32 if (preg_match("/".preg_quote("BaiduImagespider")."/i", $user_agent)) {
33 return "Baidu"; }
34 if (preg_match("/".preg_quote("msnbot")."/i", $user_agent)) {
35 return "Bing"; }
36 if (preg_match("/".preg_quote("CCBot")."/i", $user_agent)) {
37 return "CommonCrawl"; }
38 if (preg_match("/".preg_quote("CSE HTML Validator")."/i", $user_agent)) {
39 return "CSE HTML Validator"; }
40 if (preg_match("/".preg_quote("discobot")."/i", $user_agent)) {
41 return "DiscoveryEngine"; }
42 if (preg_match("/".preg_quote("DnsQueries")."/i", $user_agent)) {
43 return "DNSQueries"; }
44 if (preg_match("/".preg_quote("Exabot")."/i", $user_agent)) {
45 return "Exabot"; }
46 if (preg_match("/".preg_quote("facebookexternalhit")."/i", $user_agent)) {
47 return "Facebook"; }
48 if (preg_match("/".preg_quote("GIDBot")."/i", $user_agent)) {
49 return "GIDNetwork"; }
50 if (preg_match("/".preg_quote("ichiro")."/i", $user_agent)) {
51 return "Goo Japan"; }
52 if (preg_match("/".preg_quote("moget")."/i", $user_agent)) {
53 return "Goo Japan"; }
54 if (preg_match("/".preg_quote("mogimogi")."/i", $user_agent)) {
55 return "Goo Japan"; }
56 if (preg_match("/".preg_quote("AdsBot-Google")."/i", $user_agent)) {
57 return "Google"; }
58 if (preg_match("/".preg_quote("AppEngine-Google")."/i", $user_agent)) {
59 return "Google"; }
60 if (preg_match("/".preg_quote("Googlebot")."/i", $user_agent)) {
61 return "Google"; }
62 if (preg_match("/".preg_quote("Mediapartners-Google")."/i", $user_agent)) {
63 return "Google"; }
64 if (preg_match("/".preg_quote("Grub")."/i", $user_agent)) {
65 return "Grub"; }
66 if (preg_match("/".preg_quote("Hailoobot")."/i", $user_agent)) {
67 return "Hailoo"; }
68 if (preg_match("|".preg_quote("HTML/XML Validator","|")."|i", $user_agent)) {
69 return "HTML/XML Validator"; }
70 if (preg_match("|".preg_quote("iDB-VerCheck","|")."|i", $user_agent)) {
71 return "iDB Version Checker"; }
72 if (preg_match("/".preg_quote("Infoseek")."/i", $user_agent)) {
73 return "InfoSeek"; }
74 if (preg_match("/".preg_quote("IRLbot")."/i", $user_agent)) {
75 return "IRLbot"; }
76 if (preg_match("/".preg_quote("Lycos")."/i", $user_agent)) {
77 return "Lycos"; }
78 if (preg_match("/".preg_quote("montastic-webmonitor")."/i", $user_agent)) {
79 return "Montastic"; }
80 if (preg_match("/".preg_quote("NetSprint")."/i", $user_agent)) {
81 return "NetSprint"; }
82 if (preg_match("/".preg_quote("mozDex")."/i", $user_agent)) {
83 return "Mozdex"; }
84 if (preg_match("/".preg_quote("MP3Bot")."/i", $user_agent)) {
85 return "MP3Realm"; }
86 if (preg_match("/".preg_quote("Openbot")."/i", $user_agent)) {
87 return "OpenFind"; }
88 if (preg_match("/".preg_quote("PicoSearch")."/i", $user_agent)) {
89 return "PicoSearch"; }
90 if (preg_match("/".preg_quote("QweeryBot")."/i", $user_agent)) {
91 return "Qweery"; }
92 if (preg_match("/".preg_quote("smerity")."/i", $user_agent)) {
93 return "Schwa Lab"; }
94 if (preg_match("/".preg_quote("ScoutJet")."/i", $user_agent)) {
95 return "ScoutJet"; }
96 if (preg_match("/".preg_quote("Argus")."/i", $user_agent)) {
97 return "Simpy"; }
98 if (preg_match("/".preg_quote("Sogou")."/i", $user_agent)) {
99 return "Sogou"; }
100 if (preg_match("/".preg_quote("Sosospider")."/i", $user_agent)) {
101 return "Soso"; }
102 if (preg_match("/".preg_quote("Speedy Spider")."/i", $user_agent)) {
103 return "Speedy"; }
104 if (preg_match("/".preg_quote("SpiderMonkey")."/i", $user_agent)) {
105 return "SpiderMonkey"; }
106 if (preg_match("/".preg_quote("Spider_Monkey")."/i", $user_agent)) {
107 return "SpiderMonkey"; }
108 if (preg_match("/".preg_quote("Szukacz")."/i", $user_agent)) {
109 return "Szukacz.pl"; }
110 if (preg_match("/".preg_quote("TotalValidator")."/i", $user_agent)) {
111 return "Total Validator"; }
112 if (preg_match("/".preg_quote("Ultraseek")."/i", $user_agent)) {
113 return "UltraSeek"; }
114 if (preg_match("/".preg_quote("Validator.nu")."/i", $user_agent)) {
115 return "Validator.nu"; }
116 if (preg_match("/".preg_quote("W3CRobot")."/i", $user_agent)) {
117 return "W3C Checklink"; }
118 if (preg_match("/".preg_quote("W3C-checklink")."/i", $user_agent)) {
119 return "W3C Checklink"; }
120 if (preg_match("/".preg_quote("FeedValidator")."/i", $user_agent)) {
121 return "W3C Validator"; }
122 if (preg_match("/".preg_quote("W3C_CSS_Validator")."/i", $user_agent)) {
123 return "W3C Validator"; }
124 if (preg_match("/".preg_quote("W3C_Validator")."/i", $user_agent)) {
125 return "W3C Validator"; }
126 if (preg_match("/".preg_quote("WDG_SiteValidator")."/i", $user_agent)) {
127 return "WDG Validator"; }
128 if (preg_match("/".preg_quote("WDG_Validator")."/i", $user_agent)) {
129 return "WDG Validator"; }
130 if (preg_match("/".preg_quote("HTTP Compression Test")."/i", $user_agent)) {
131 return "WhatsMyIP"; }
132 if (preg_match("/".preg_quote("WhatsMyIP.org")."/i", $user_agent)) {
133 return "WhatsMyIP"; }
134 if (preg_match("/".preg_quote("Yahoo")."/i", $user_agent)) {
135 return "Yahoo"; }
136 if (preg_match("/".preg_quote("Yandex")."/i", $user_agent)) {
137 return "Yandex"; }
138 if (preg_match("/".preg_quote("Yeti")."/i", $user_agent)) {
139 return "NHN Naver"; }
140 return false; }