Link to home
Start Free TrialLog in
Avatar of RTSol
RTSol

asked on

Mobile access of web site

Hi,

I have a web site to which I would like to provide access from mobile phones. I need to detect if a mobile phone is accessing the site and then redirekt to a part of the site specially designed for that.

How can I detect if a mobile phone is accessing the site?

Is there a way to determine the identity of the mobile phone in order to automatically redirekt to a special page (including login)?

Best regards
RTSol
Avatar of Rob Knight
Rob Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi,

Every browser sends its user agent and it is this that reports what type of browser (i.e. Internet Explorer, BlackBerry etc.)

Various code is available for detecting different mobile browsers - it depends on your development environment. Here are some examples:

http://detectmobilebrowsers.mobi/

http://www.russellbeattie.com/blog/mobile-browser-detection-in-php

http://forums.macrumors.com/showthread.php?t=205417

Hope this helps.

RobMobility.
Avatar of RTSol
RTSol

ASKER

Hi,

Thanks for the reply - now I know thats its possible. However, I work in dotnet and php is realy not my strong suit. If you have something targeting C# in dotnet I would really be greatful.

Thanks!
RTSol
ASKER CERTIFIED SOLUTION
Avatar of Rob Knight
Rob Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RTSol

ASKER

Thanks - I will try that out.