Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

.mobi How To Differentiate IP from Mobile or PC?

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

newsiness

VIP Member
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
0
Close
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
Close
Thanks for the tips...really appreciate that..:)
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back