Dynadot โ€” .com Transfer

.mobi How To Differentiate IP from Mobile or PC?

SpaceshipSpaceship
Watch
Impact
49
I am planning to develop another mobile site.
When mobile users browse the site url it redirects to mobile friendly site.
When pc users browse the same site url it redirects to normal site which is not mobile friendly.

How to achieve this? Thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Hmm, it is a bit more complex than that... what you have to do is use PHP, Java or any programming language to detect the HTTP HEADER of the navigator, then you check to see if it is mobile or web, then you use URL redirect. :blink: The IP of course will be always the same, so you can not rely on that for detection.

Cheers,
 
0
•••
0
•••
You can't do it based on IP address alone, because some of the new mobile devices (iPhone included) use regular wifi networks. We have to rely on reading the browser reports on.

Here's a super easy php script that mTLD has provided,
http://dev.mobi/node/472

Good luck,

RJ
 
0
•••
Thanks for the tips...really appreciate that..:)
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Payment Flexibility
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back