Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of UserAgent String Values

I am trying to determine what kind of interface to show to a user. If a user is visiting my site with a touch screen phone, I want to show them one interface, otherwise, I want to show them another.

Does anyone know of a list of UserAgent string values so I can do this check? I know I can check for the iPhone using the following code in ASP.NET:

Request.UserAgent.IndexOf("iPhone", StringComparison.OrdinalIgnoreCase)

However, I would really like to find a list for other similar phones like

Palm Pre Blackberry Thunder etc.

like image 434
Villager Avatar asked Jul 24 '09 20:07

Villager


People also ask

What does a user agent string contain?

Described in the HTTP standard, the User-Agent string contains a number of tokens that refer to various aspects of the request, including the browser's name and version, rendering engine, device's model number, operating system and its version, etc.

What are user agent strings?

A browser's User-Agent string (UA) helps identify which browser is being used, what version, and on which operating system. When feature detection APIs are not available, use the UA to customize behavior or content to specific browser versions.

What is custom user agent string?

Custom UserAgent String is an add-on that enables you to easily change your browser's user-agent by adding site-specific user-agent strings from the Options page. Some features: 1. Add a custom user-agent string for each URL or website (domain).


1 Answers

The Mobile Device Browser File might be of some help. Example: http://www.hanselman.com/blog/MixMobileWebSitesWithASPNETMVCAndTheMobileBrowserDefinitionFile.aspx

like image 73
John Sheehan Avatar answered Oct 05 '22 06:10

John Sheehan