Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a list of user agents which visited my website. And I would like to turn them into user statics such as which browser and os are reaching the most to my website. For Example: I have one user agent who visited my site like that.

Mozilla/5.0 (iPhonel Ul; CPU iPhone OS 5_1 like Mac OS X; en-us) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile/9B176 Safari/7534.48.3

And I would like to turn it into like this.

Device = iPhone 4 OS = iOS 5.1 Browser= Google Chrome Mobile

Is there any tools or any software available for turning User Agents into useful information like that? I found some tools but they are not complete(means they cannot detect some user agents) and they do not have some device information. Thanks in advance.

share|improve this question

1 Answer 1

Since most browsers do not usually supply good or in face true information about them, we cannot solely rely on the header information they by themselves supply to us. The WhichBrowser tool can detect many if not most of the browsers and operating systems depending on not just the Browser given headers but also some of he behaviors that browsers usually show. It is open source so you can delve into it or just use the library as is.

WhichBrowser

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.