Starting > Designing > Developing > Testing > Running
Home | News | Blogs | About

Possible to detect user is on desktop web browser rather than on mobile browser?

Hello, I'm developing a mobile web app that has both a frontend app & a backend admin control panel (like Joomla).

I want to restrict the ability to only access the admin control panel on a desktop PC rather than on a mobile handset.

Without using DeviceAtlas (not because it's not good, my company can't afford it - therefore i need to write my own code :( ), I know it is possible to detect the user is accessing a web app using certain mobile handsets devices rather than on a PC -> using the useragent and strings like "ipod, iphone, android etc.."

So my question is: is it possible to basically distinguish between mobile devices & desktop PC browsers. How can i detect user is on a desktop browser (IE/Firefox/Chrome/Safari)?
Bare in mind that safari/mozilla firefox related strings appear in most mobile handsets also as for e.g. IPhone uses safari etc..

any help much appreciated

Switch to our desktop site | mobiThinking