4

Anyone knows a easy way preferably PHP to achieve this. I want to redirect mobile visitors based on their country and carrier (like T-mobile or Vodafone). Thanks in advance

vinny
  • 529
  • 4
  • 7
  • 16

1 Answers1

3

There is a HTML5 Network Information API:

Not sure if you can get Carrier information though but I know some Carriers offer HTML5 API's of there own that you might take advantage of:

Also there is a HTML5 Geolocation API

More Examples:

As for a PHP solution you could do a carrier lookup, there are no free solutions but you can try something like this:

But for this to work you would need to obtain the users phone number which:

  1. HTML5 thankfully can not
  2. PHP thankfully can not

The user would have to manually enter the number or develop a native app which would have access to the device number

Community
  • 1
  • 1
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383