Mobile user redirection based on country and operator

Anyone knows an easy way for PHP to achieve this. I want to redirect mobile visitors based on their country and operator (for example, T-mobile or Vodafone). thanks in advance

+4
source share
1 answer

There is an HTML5 network information API:

Not sure if you can get carrier information, but I know that some carriers offer HTML5 APIs where you can use:

There is also an HTML5 Geolocation API

Other examples:

As for the PHP solution, you can search for an operator, there are no free solutions, but you can try something like this:

But for this you will need to get the phone number of the user, which:

The user will have to manually enter the number or create his own application that will have access to the device number

+3
source

Source: https://habr.com/ru/post/1400228/


All Articles