Solved

Mobile access of web site

Posted on 2011-03-15
4
290 Views
Last Modified: 2013-12-27
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
0
Comment
Question by:RTSol
  • 2
  • 2
4 Comments
 
LVL 25

Expert Comment

by:RobMobility
ID: 35136514
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.
0
 

Author Comment

by:RTSol
ID: 35136532
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
0
 
LVL 25

Accepted Solution

by:
RobMobility earned 500 total points
ID: 35136745
Hi,

Try this:

http://www.codeproject.com/KB/aspnet/mobiledetect.aspx

Regards,


RobMobility.
0
 

Author Closing Comment

by:RTSol
ID: 35136758
Thanks - I will try that out.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now