There are open source scripts on Detect Mobile Browser that do this in Apache, ASP, ColdFusion, JavaScript and PHP.
More Related Contents:
- Determine a user’s timezone
- Determine a user’s timezone
- Why does HTML think “chucknorris” is a color?
- How do you disable browser autocomplete on web form field / input tags?
- Embedding Base64 Images
- Why do browsers match CSS selectors from right to left?
- WebSockets vs. Server-Sent events/EventSource
- Disabled form inputs do not appear in the request
- css ‘pointer-events’ property alternative for IE
- Force browser to clear cache
- What are all the valid self-closing elements in XHTML (as implemented by the major browsers)?
- Display PDF within web browser
- How to tell if a browser is in “quirks” mode?
- What is use of ‘initial’ value in CSS?
- Make page to tell browser not to cache/preserve input values
- Browser Caching of CSS files
- Network-Path Reference URI / Scheme relative URLs
- How to prevent a browser from storing passwords
- Localization of input type number
- Force browsers to load CSS before showing the page
- HTML 5 Favicon – Support?
- How can I locate the default style sheet for a browser?
- Is there a way to force browsers to refresh/download images?
- How do I make Firefox auto-refresh on file change?
- What client-side web scripting languages are there other than JavaScript and VBScript?
- Why use data URI scheme?
- How do I open a URL from C++?
- Is any way that is safe to display videos in a browser
- Force IE9 to emulate IE8. Possible?
- How to always show the vertical scrollbar in a browser?