Skip to content

Commit

Permalink
Issue antirez#1: Adding mobile browsers and operating systems. Kind o…
Browse files Browse the repository at this point in the history
…f arbitrary

divisions, probably need a new category.
  • Loading branch information
benzado committed Aug 10, 2011
1 parent 3330c29 commit ac49221
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions visitors.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,15 +1409,25 @@ int vi_process_os(struct vih *vih, char *agent)
"Win95", "Windows",
"WinNT", "Windows",
"Win32", "Windows",
"Android", NULL,
"Linux", NULL,
"-linux-", "Linux",
"iOS", NULL,
"iPhone", "iOS",
"iPod", "iOS",
"iPad", "iOS",
"MobileSafari", "iOS",
"Macintosh", NULL,
"Mac_PowerPC", "Macintosh",
"Mac OS X", "Macintosh",
"Mac OSX", "Macintosh",
"SunOS", NULL,
"FreeBSD", NULL,
"OpenBSD", NULL,
"NetBSD", NULL,
"BEOS", NULL,
"Darwin", NULL,
"BlackBerry", "BlackBerry",
"", "Unknown",
NULL, NULL,
};
Expand All @@ -1432,10 +1442,16 @@ int vi_process_browsers(struct vih *vih, char *agent)
* so it must be before Gecko. */
char *browserslist[] = {
"Opera", NULL,
"Chrome", NULL,
"MSIE 4", "Explorer 4.x",
"MSIE 5", "Explorer 5.x",
"MSIE 6", "Explorer 6.x",
"MSIE", "Explorer unknown version",
"MobileSafari", "MobileSafari",
"Web/1.0", "MobileSafari",
"Mozilla/5.0 (iPhone", "Safari (iPhone)",
"Mozilla/5.0 (iPad", "Safari (iPad)",
"Mozilla/5.0 (iPod", "Safari (iPod touch)",
"Safari", NULL,
"Konqueror", NULL,
"Galeon", NULL,
Expand All @@ -1460,6 +1476,7 @@ int vi_process_browsers(struct vih *vih, char *agent)
"NSPlayer", NULL,
"Googlebot", "GoogleBot",
"googlebot", "GoogleBot",
"BlackBerry", NULL,
"", "Unknown",
NULL, NULL,
};
Expand Down

0 comments on commit ac49221

Please sign in to comment.