I wanted to see if anyone knows if it’s possible to detect what Mac computer model a user is has, straight from the browser. Aka “MacBook Pro (Mid/Late 2007)” or “MacBook Air (Late 2008 or newer).”
This is probably a long shot, but since Mac browsers provide the OS via userAgent (http://www.quirksmode.org/js/detect.html), I thought there could be a chance.
Nope. The
User-Agentheader provides some information, but not much:You can test this yourself by going to http://whatsmyuseragent.com/, or dumping the
User-Agentheader in your favorite server-side language.Similar information can be found in the
navigatorobject from JavaScript:The only way to get more information is from a browser plugin of some kind.