Small update
[iDB.git] / inc / misc / useragents.php
blob1eca716c249d4bff196d1c88be058b50e8e08c25
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-2019 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1
12 Copyright 2004-2019 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2
14 $FileInfo: useragents.php - Last Update: 08/02/2019 SVN 905 - Author: cooldude2k $
16 // User Agent Checker
17 function user_agent_check($user_agent) {
18 global $Settings;
19 if(!isset($Settings['log_spiders_bots'])) {
20 $Settings['log_spiders_bots'] = "yes"; }
21 if($Settings['log_spiders_bots']!=="yes") {
22 return false; }
23 if (preg_match("/".preg_quote("; 008/", "/")."/i", $user_agent)) {
24 return "80legs"; }
25 if (preg_match("/".preg_quote("Aboundex", "/")."/i", $user_agent)) {
26 return "Aboundex"; }
27 if (preg_match("/".preg_quote("AboutUsBot", "/")."/i", $user_agent)) {
28 return "AboutUs"; }
29 if (preg_match("/".preg_quote("AhrefsBot", "/")."/i", $user_agent)) {
30 return "Ahrefs"; }
31 if (preg_match("/".preg_quote("ia_archiver", "/")."/i", $user_agent)) {
32 return "Alexa"; }
33 if (preg_match("/".preg_quote("aiHitBot", "/")."/i", $user_agent)) {
34 return "aiHit"; }
35 if (preg_match("/".preg_quote("AlkalineBot", "/")."/i", $user_agent)) {
36 return "Alkaline"; }
37 if (preg_match("/".preg_quote("AltaVista", "/")."/i", $user_agent)) {
38 return "AltaVista"; }
39 if (preg_match("/".preg_quote("Ask Jeeves", "/")."/i", $user_agent)) {
40 return "Ask Jeeves"; }
41 if (preg_match("/".preg_quote("askpeter_bot", "/")."/i", $user_agent)) {
42 return "Ask Peter"; }
43 if (preg_match("/".preg_quote("ASPseek", "/")."/i", $user_agent)) {
44 return "ASPseek"; }
45 if (preg_match("/".preg_quote("Baiduspider", "/")."/i", $user_agent)) {
46 return "Baidu"; }
47 if (preg_match("/".preg_quote("BaiduImagespider", "/")."/i", $user_agent)) {
48 return "Baidu"; }
49 if (preg_match("/".preg_quote("bingbot", "/")."/i", $user_agent)) {
50 return "Bing"; }
51 if (preg_match("/".preg_quote("msnbot", "/")."/i", $user_agent)) {
52 return "Bing"; }
53 if (preg_match("/".preg_quote("CatchBot", "/")."/i", $user_agent)) {
54 return "CatchBot"; }
55 if (preg_match("/".preg_quote("Cityreview Robot", "/")."/i", $user_agent)) {
56 return "Cityreview"; }
57 if (preg_match("/".preg_quote("CCBot", "/")."/i", $user_agent)) {
58 return "CommonCrawl"; }
59 if (preg_match("/".preg_quote("cmsworldmap.com", "/")."/i", $user_agent)) {
60 return "CMSWorldMap"; }
61 if (preg_match("/".preg_quote("CSE HTML Validator", "/")."/i", $user_agent)) {
62 return "CSE HTML Validator"; }
63 if (preg_match("/".preg_quote("discobot", "/")."/i", $user_agent)) {
64 return "DiscoveryEngine"; }
65 if (preg_match("/".preg_quote("DnsQueries", "/")."/i", $user_agent)) {
66 return "DNSQueries"; }
67 if (preg_match("/".preg_quote("Domnutch-Bot", "/")."/i", $user_agent)) {
68 return "Nutch"; }
69 if (preg_match("/".preg_quote("DotBot", "/")."/i", $user_agent)) {
70 return "DotBot"; }
71 if (preg_match("/".preg_quote("DuckDuckBot", "/")."/i", $user_agent)) {
72 return "DuckDuckGo"; }
73 if (preg_match("/".preg_quote("Exabot", "/")."/i", $user_agent)) {
74 return "Exabot"; }
75 if (preg_match("/".preg_quote("Ezooms", "/")."/i", $user_agent)) {
76 return "Ezooms"; }
77 if (preg_match("/".preg_quote("facebookexternalhit", "/")."/i", $user_agent)) {
78 return "Facebook"; }
79 if (preg_match("/".preg_quote("Feedtrace-bot", "/")."/i", $user_agent)) {
80 return "FeedtraceBot"; }
81 if (preg_match("/".preg_quote("findfiles.net", "/")."/i", $user_agent)) {
82 return "FindFiles Bot"; }
83 if (preg_match("/".preg_quote("FreeWebMonitoring", "/")."/i", $user_agent)) {
84 return "FreeWebMonitoring"; }
85 if (preg_match("/".preg_quote("FlightDeckReportsBot", "/")."/i", $user_agent)) {
86 return "FlightDeck Reports"; }
87 if (preg_match("/".preg_quote("GIDBot", "/")."/i", $user_agent)) {
88 return "GIDNetwork"; }
89 if (preg_match("/".preg_quote("ichiro", "/")."/i", $user_agent)) {
90 return "Goo Japan"; }
91 if (preg_match("/".preg_quote("moget", "/")."/i", $user_agent)) {
92 return "Goo Japan"; }
93 if (preg_match("/".preg_quote("mogimogi", "/")."/i", $user_agent)) {
94 return "Goo Japan"; }
95 if (preg_match("/".preg_quote("AdsBot-Google", "/")."/i", $user_agent)) {
96 return "Google"; }
97 if (preg_match("/".preg_quote("AppEngine-Google", "/")."/i", $user_agent)) {
98 return "Google"; }
99 if (preg_match("/".preg_quote("Googlebot", "/")."/i", $user_agent)) {
100 return "Google"; }
101 if (preg_match("/".preg_quote("Mediapartners-Google", "/")."/i", $user_agent)) {
102 return "Google"; }
103 if (preg_match("/".preg_quote("Gigabot", "/")."/i", $user_agent)) {
104 return "Gigablast"; }
105 if (preg_match("/".preg_quote("Grub", "/")."/i", $user_agent)) {
106 return "GrubBot"; }
107 if (preg_match("/".preg_quote("Hailoobot", "/")."/i", $user_agent)) {
108 return "Hailoobot"; }
109 if (preg_match("|".preg_quote("HTML/XML Validator", "|")."|i", $user_agent)) {
110 return "HTML/XML Validator"; }
111 if (preg_match("/".preg_quote("Huaweisymantecspider", "/")."/i", $user_agent)) {
112 return "Huaweisymantecspider"; }
113 if (preg_match("|".preg_quote("iDB-VerCheck", "|")."|i", $user_agent)) {
114 return "iDB Version Checker"; }
115 if (preg_match("|".preg_quote("iDB-Forum", "|")."|i", $user_agent)) {
116 return "iDB Message Board"; }
117 if (preg_match("/".preg_quote("Infoseek", "/")."/i", $user_agent)) {
118 return "InfoSeek"; }
119 if (preg_match("/".preg_quote("IRLbot", "/")."/i", $user_agent)) {
120 return "IRLbot"; }
121 if (preg_match("/".preg_quote("Linguee Bot", "/")."/i", $user_agent)) {
122 return "Linguee"; }
123 if (preg_match("/".preg_quote("Lycos", "/")."/i", $user_agent)) {
124 return "Lycos"; }
125 if (preg_match("/".preg_quote("LexxeBot", "/")."/i", $user_agent)) {
126 return "LexxeBot"; }
127 if (preg_match("/".preg_quote("MJ12bot", "/")."/i", $user_agent)) {
128 return "Majestic-12"; }
129 if (preg_match("/".preg_quote("MLBot", "/")."/i", $user_agent)) {
130 return "MLBot"; }
131 if (preg_match("/".preg_quote("montastic-monitor", "/")."/i", $user_agent)) {
132 return "Montastic"; }
133 if (preg_match("/".preg_quote("montastic-webmonitor", "/")."/i", $user_agent)) {
134 return "Montastic"; }
135 if (preg_match("/".preg_quote("mozDex", "/")."/i", $user_agent)) {
136 return "Mozdex"; }
137 if (preg_match("/".preg_quote("Mail.Ru", "/")."/i", $user_agent)) {
138 return "Mail RU"; }
139 if (preg_match("/".preg_quote("MP3Bot", "/")."/i", $user_agent)) {
140 return "MP3Realm"; }
141 if (preg_match("/".preg_quote("mxbot", "/")."/i", $user_agent)) {
142 return "mxbot"; }
143 if (preg_match("/".preg_quote("NaverBot", "/")."/i", $user_agent)) {
144 return "NaverBot"; }
145 if (preg_match("/".preg_quote("NetSprint", "/")."/i", $user_agent)) {
146 return "NetSprint"; }
147 if (preg_match("/".preg_quote("NextGenSearchBot", "/")."/i", $user_agent)) {
148 return "ZoomInfo"; }
149 if (preg_match("/".preg_quote("; oBot\/", "/")."/i", $user_agent)) {
150 return "oBot"; }
151 if (preg_match("/".preg_quote("Openbot", "/")."/i", $user_agent)) {
152 return "OpenFind"; }
153 if (preg_match("/".preg_quote("Page2RSS", "/")."/i", $user_agent)) {
154 return "Page2RSS"; }
155 if (preg_match("/".preg_quote("Peew", "/")."/i", $user_agent)) {
156 return "Peew"; }
157 if (preg_match("/".preg_quote("PicoSearch", "/")."/i", $user_agent)) {
158 return "PicoSearch"; }
159 if (preg_match("/".preg_quote("Plukkie", "/")."/i", $user_agent)) {
160 return "Plukkie"; }
161 if (preg_match("/".preg_quote("Purebot", "/")."/i", $user_agent)) {
162 return "PuritySearch"; }
163 if (preg_match("/".preg_quote("QweeryBot", "/")."/i", $user_agent)) {
164 return "QweeryBot"; }
165 if (preg_match("/".preg_quote("R6_FeedFetcher", "/")."/i", $user_agent)) {
166 return "Radian6"; }
167 if (preg_match("/".preg_quote("radian6_linkcheck", "/")."/i", $user_agent)) {
168 return "Radian6"; }
169 if (preg_match("/".preg_quote("smerity", "/")."/i", $user_agent)) {
170 return "Schwa Lab"; }
171 if (preg_match("/".preg_quote("ScoutJet", "/")."/i", $user_agent)) {
172 return "ScoutJet"; }
173 if (preg_match("/".preg_quote("Search17Bot", "/")."/i", $user_agent)) {
174 return "Search17"; }
175 if (preg_match("/".preg_quote("Setooz", "/")."/i", $user_agent)) {
176 return "Setooz"; }
177 if (preg_match("/".preg_quote("Speedy Spider", "/")."/i", $user_agent)) {
178 return "Entireweb"; }
179 if (preg_match("/".preg_quote("Argus", "/")."/i", $user_agent)) {
180 return "Simpy"; }
181 if (preg_match("/".preg_quote("seexie.com_bot", "/")."/i", $user_agent)) {
182 return "Seexie"; }
183 if (preg_match("/".preg_quote("SemrushBot", "/")."/i", $user_agent)) {
184 return "SemrushBot"; }
185 if (preg_match("/".preg_quote("SiteBot", "/")."/i", $user_agent)) {
186 return "SiteBot"; }
187 if (preg_match("/".preg_quote("Sogou", "/")."/i", $user_agent)) {
188 return "Sogou"; }
189 if (preg_match("/".preg_quote("Sosospider", "/")."/i", $user_agent)) {
190 return "Soso"; }
191 if (preg_match("/".preg_quote("spbot", "/")."/i", $user_agent)) {
192 return "spbot"; }
193 if (preg_match("/".preg_quote("Speedy Spider", "/")."/i", $user_agent)) {
194 return "Speedy"; }
195 if (preg_match("/".preg_quote("SpiderMonkey", "/")."/i", $user_agent)) {
196 return "SpiderMonkey"; }
197 if (preg_match("/".preg_quote("Spider_Monkey", "/")."/i", $user_agent)) {
198 return "SpiderMonkey"; }
199 if (preg_match("/".preg_quote("SISTRIX Crawler", "/")."/i", $user_agent)) {
200 return "SISTRIX Crawler"; }
201 if (preg_match("/".preg_quote("Szukacz", "/")."/i", $user_agent)) {
202 return "Szukacz.pl"; }
203 if (preg_match("/".preg_quote("tangyang9@gmail.com", "/")."/i", $user_agent)) {
204 return "tangyangbot"; }
205 if (preg_match("/".preg_quote("Thriceler", "/")."/i", $user_agent)) {
206 return "Thriceler"; }
207 if (preg_match("/".preg_quote("TotalValidator", "/")."/i", $user_agent)) {
208 return "Total Validator"; }
209 if (preg_match("/".preg_quote("Twitterbot", "/")."/i", $user_agent)) {
210 return "Twitterbot"; }
211 if (preg_match("/".preg_quote("Ultraseek", "/")."/i", $user_agent)) {
212 return "UltraSeek"; }
213 if (preg_match("/".preg_quote("Validator.nu", "/")."/i", $user_agent)) {
214 return "Validator.nu"; }
215 if (preg_match("/".preg_quote("Voyager", "/")."/i", $user_agent)) {
216 return "Kosmix"; }
217 if (preg_match("/".preg_quote("W3CRobot", "/")."/i", $user_agent)) {
218 return "W3C Checklink"; }
219 if (preg_match("/".preg_quote("W3C-checklink", "/")."/i", $user_agent)) {
220 return "W3C Checklink"; }
221 if (preg_match("/".preg_quote("FeedValidator", "/")."/i", $user_agent)) {
222 return "W3C Validator"; }
223 if (preg_match("/".preg_quote("W3C_CSS_Validator", "/")."/i", $user_agent)) {
224 return "W3C Validator"; }
225 if (preg_match("/".preg_quote("W3C_Validator", "/")."/i", $user_agent)) {
226 return "W3C Validator"; }
227 if (preg_match("/".preg_quote("WDG_SiteValidator", "/")."/i", $user_agent)) {
228 return "WDG Validator"; }
229 if (preg_match("/".preg_quote("WDG_Validator", "/")."/i", $user_agent)) {
230 return "WDG Validator"; }
231 if (preg_match("/".preg_quote("HTTP Compression Test", "/")."/i", $user_agent)) {
232 return "WhatsMyIP"; }
233 if (preg_match("/".preg_quote("HuaweiSymantecSpider", "/")."/i", $user_agent)) {
234 return "Huawei Symantec"; }
235 if (preg_match("/".preg_quote("WhatsMyIP.org", "/")."/i", $user_agent)) {
236 return "WhatsMyIP"; }
237 if (preg_match("/".preg_quote("WTABOT", "/")."/i", $user_agent)) {
238 return "WTABOT"; }
239 if (preg_match("/".preg_quote("Yahoo", "/")."/i", $user_agent)) {
240 return "Yahoo"; }
241 if (preg_match("/".preg_quote("Yandex", "/")."/i", $user_agent)) {
242 return "Yandex"; }
243 if (preg_match("/".preg_quote("YoudaoBot", "/")."/i", $user_agent)) {
244 return "YoudaoBot"; }
245 if (preg_match("/".preg_quote("YodaoBot", "/")."/i", $user_agent)) {
246 return "YodaoBot"; }
247 if (preg_match("/".preg_quote("Yeti", "/")."/i", $user_agent)) {
248 return "NHN Naver"; }
249 return false; }