There are open source scripts on Detect Mobile Browser that do this in Apache, ASP, ColdFusion, JavaScript and PHP.
Related Contents:
- 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?
- What does do?
- Local Storage vs Cookies
- WebSockets vs. Server-Sent events/EventSource
- Why do browsers match CSS selectors from right to left?
- Embedding Base64 Images
- Disabled form inputs do not appear in the request
- Force browser to clear cache
- What are all the valid self-closing elements in XHTML (as implemented by the major browsers)?
- Correct MIME Type for favicon.ico?
- HTML 5 Favicon – Support?
- How to add google chrome omnibox-search support for your site?
- Disable double-tap “zoom” option in browser on touch devices
- css ‘pointer-events’ property alternative for IE
- How do Google+ +1 widgets break out of their iframe?
- How to disable CSS in Browser for testing purposes
- How to tell if a browser is in “quirks” mode?
- Make page to tell browser not to cache/preserve input values
- Do browsers send “\r\n” or “\n” or does it depend on the browser?
- Is putting your favicon.ico file in a non-root path a bad idea?
- Display PDF within web browser
- How to prevent a browser from storing passwords
- Which HTML5 tags can I use without worrying about browser compatibility?
- When a child element overflows horizontally, why is the right padding of the parent ignored?
- How do I make Firefox auto-refresh on file change?
- How to always show the vertical scrollbar in a browser?
- Open an .html file with default browser using Bash on Mac
- Can I export part of an HTML page to an SVG image?
- Browser Caching of CSS files
- What is gZip compression?
- Is there a way to force browsers to refresh/download images?
- Using True type fonts in web applications
- Network-Path Reference URI / Scheme relative URLs
- Localization of input type number
- Is there a way to tell browsers to honor the jpeg exif orientation?
- Why use data URI scheme?
- Force IE9 to emulate IE8. Possible?
- How does a parser (for example, HTML) work?
- How do I give text or an image a transparent background using CSS?
- Is there a W3C valid way to disable autocomplete in a HTML form?
- How can I have two fixed width columns with one flexible column in the center?
- Percentage Height HTML 5/CSS
- Force flex item to span full row width
- How to set date format in HTML date input tag?
- Best JSON-LD practices: using multiple elements?
- Chrome Download Attribute not working
- Set maxlength in Html Textarea [duplicate]
- removing bold styling from part of a header