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 $
17 function user_agent_check($user_agent) {
19 if(!isset($Settings['log_spiders_bots'])) {
20 $Settings['log_spiders_bots'] = "yes"; }
21 if($Settings['log_spiders_bots']!=="yes") {
23 if (preg_match("/".preg_quote("; 008/", "/")."/i", $user_agent)) {
25 if (preg_match("/".preg_quote("Aboundex", "/")."/i", $user_agent)) {
27 if (preg_match("/".preg_quote("AboutUsBot", "/")."/i", $user_agent)) {
29 if (preg_match("/".preg_quote("AhrefsBot", "/")."/i", $user_agent)) {
31 if (preg_match("/".preg_quote("ia_archiver", "/")."/i", $user_agent)) {
33 if (preg_match("/".preg_quote("aiHitBot", "/")."/i", $user_agent)) {
35 if (preg_match("/".preg_quote("AlkalineBot", "/")."/i", $user_agent)) {
37 if (preg_match("/".preg_quote("AltaVista", "/")."/i", $user_agent)) {
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)) {
43 if (preg_match("/".preg_quote("ASPseek", "/")."/i", $user_agent)) {
45 if (preg_match("/".preg_quote("Baiduspider", "/")."/i", $user_agent)) {
47 if (preg_match("/".preg_quote("BaiduImagespider", "/")."/i", $user_agent)) {
49 if (preg_match("/".preg_quote("bingbot", "/")."/i", $user_agent)) {
51 if (preg_match("/".preg_quote("msnbot", "/")."/i", $user_agent)) {
53 if (preg_match("/".preg_quote("CatchBot", "/")."/i", $user_agent)) {
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)) {
69 if (preg_match("/".preg_quote("DotBot", "/")."/i", $user_agent)) {
71 if (preg_match("/".preg_quote("DuckDuckBot", "/")."/i", $user_agent)) {
72 return "DuckDuckGo"; }
73 if (preg_match("/".preg_quote("Exabot", "/")."/i", $user_agent)) {
75 if (preg_match("/".preg_quote("Ezooms", "/")."/i", $user_agent)) {
77 if (preg_match("/".preg_quote("facebookexternalhit", "/")."/i", $user_agent)) {
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)) {
91 if (preg_match("/".preg_quote("moget", "/")."/i", $user_agent)) {
93 if (preg_match("/".preg_quote("mogimogi", "/")."/i", $user_agent)) {
95 if (preg_match("/".preg_quote("AdsBot-Google", "/")."/i", $user_agent)) {
97 if (preg_match("/".preg_quote("AppEngine-Google", "/")."/i", $user_agent)) {
99 if (preg_match("/".preg_quote("Googlebot", "/")."/i", $user_agent)) {
101 if (preg_match("/".preg_quote("Mediapartners-Google", "/")."/i", $user_agent)) {
103 if (preg_match("/".preg_quote("Gigabot", "/")."/i", $user_agent)) {
104 return "Gigablast"; }
105 if (preg_match("/".preg_quote("Grub", "/")."/i", $user_agent)) {
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)) {
119 if (preg_match("/".preg_quote("IRLbot", "/")."/i", $user_agent)) {
121 if (preg_match("/".preg_quote("Linguee Bot", "/")."/i", $user_agent)) {
123 if (preg_match("/".preg_quote("Lycos", "/")."/i", $user_agent)) {
125 if (preg_match("/".preg_quote("LexxeBot", "/")."/i", $user_agent)) {
127 if (preg_match("/".preg_quote("MJ12bot", "/")."/i", $user_agent)) {
128 return "Majestic-12"; }
129 if (preg_match("/".preg_quote("MLBot", "/")."/i", $user_agent)) {
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)) {
137 if (preg_match("/".preg_quote("Mail.Ru", "/")."/i", $user_agent)) {
139 if (preg_match("/".preg_quote("MP3Bot", "/")."/i", $user_agent)) {
141 if (preg_match("/".preg_quote("mxbot", "/")."/i", $user_agent)) {
143 if (preg_match("/".preg_quote("NaverBot", "/")."/i", $user_agent)) {
145 if (preg_match("/".preg_quote("NetSprint", "/")."/i", $user_agent)) {
146 return "NetSprint"; }
147 if (preg_match("/".preg_quote("NextGenSearchBot", "/")."/i", $user_agent)) {
149 if (preg_match("/".preg_quote("; oBot\/", "/")."/i", $user_agent)) {
151 if (preg_match("/".preg_quote("Openbot", "/")."/i", $user_agent)) {
153 if (preg_match("/".preg_quote("Page2RSS", "/")."/i", $user_agent)) {
155 if (preg_match("/".preg_quote("Peew", "/")."/i", $user_agent)) {
157 if (preg_match("/".preg_quote("PicoSearch", "/")."/i", $user_agent)) {
158 return "PicoSearch"; }
159 if (preg_match("/".preg_quote("Plukkie", "/")."/i", $user_agent)) {
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)) {
167 if (preg_match("/".preg_quote("radian6_linkcheck", "/")."/i", $user_agent)) {
169 if (preg_match("/".preg_quote("smerity", "/")."/i", $user_agent)) {
170 return "Schwa Lab"; }
171 if (preg_match("/".preg_quote("ScoutJet", "/")."/i", $user_agent)) {
173 if (preg_match("/".preg_quote("Search17Bot", "/")."/i", $user_agent)) {
175 if (preg_match("/".preg_quote("Setooz", "/")."/i", $user_agent)) {
177 if (preg_match("/".preg_quote("Speedy Spider", "/")."/i", $user_agent)) {
178 return "Entireweb"; }
179 if (preg_match("/".preg_quote("Argus", "/")."/i", $user_agent)) {
181 if (preg_match("/".preg_quote("seexie.com_bot", "/")."/i", $user_agent)) {
183 if (preg_match("/".preg_quote("SemrushBot", "/")."/i", $user_agent)) {
184 return "SemrushBot"; }
185 if (preg_match("/".preg_quote("SiteBot", "/")."/i", $user_agent)) {
187 if (preg_match("/".preg_quote("Sogou", "/")."/i", $user_agent)) {
189 if (preg_match("/".preg_quote("Sosospider", "/")."/i", $user_agent)) {
191 if (preg_match("/".preg_quote("spbot", "/")."/i", $user_agent)) {
193 if (preg_match("/".preg_quote("Speedy Spider", "/")."/i", $user_agent)) {
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)) {
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)) {
239 if (preg_match("/".preg_quote("Yahoo", "/")."/i", $user_agent)) {
241 if (preg_match("/".preg_quote("Yandex", "/")."/i", $user_agent)) {
243 if (preg_match("/".preg_quote("YoudaoBot", "/")."/i", $user_agent)) {
244 return "YoudaoBot"; }
245 if (preg_match("/".preg_quote("YodaoBot", "/")."/i", $user_agent)) {
247 if (preg_match("/".preg_quote("Yeti", "/")."/i", $user_agent)) {
248 return "NHN Naver"; }