Detect Mobile Browsers Using Any Language
30
Nov
// php the_time('Y') ?>
Detect Mobile Browser is an open source project for easily understanding whether a visitor of a website is using a mobile browser or not.
It provides codes in several scripting languages (PHP,Rails, ASP, JSP, Coldfusion, .htaccess & JavaScript) that can detect the browser.
The website also has a simple forwarding function which you can create a link like:
http://detectmobilebrowser.com/a.com|b.com
and the user will be redirected to "a.com" or "b.com" depending on the browser type used.
- Tags:
Android ASP Blackberry iPhone JSP Php Rails
- Filed under: Mobile Development, Other License
- 2 Comments
















2 Responses for "Detect Mobile Browsers Using Any Language"
Didn’t seem to work for WebOS on my Palm Pre. It came up as “Not a mobile browser.” It did work however on the Blackberry Bold (using Blackberry Browser and Opera Mini) that I tested it on.
The WebOS browser is based on WebKit, just like iPhone and Android. I am wondering if those browsers were detected properly or not.
@mikemick
The site itself uses the JavaScript version to detect mobile browsers, so if your Pre has JavaScript turned off if will not redirect or display the useragent below “No mobile browser detected.”