K
K
Kirill Gorelov2015-10-13 16:27:16
PHP
Kirill Gorelov, 2015-10-13 16:27:16

Determine the user's city and display text for him, how?

Hello.
Where can I find a script that displays a certain text to users from Moscow. And, accordingly, users from another city have a different text?
I looked for scripts, I found only how easy it is to determine its ip and city, but I didn’t find how to do it so that information would be displayed only for three different cities (it’s just that the site is moving forward like that).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2015-10-13
@allard

Here the best option is to find a service with the provision of api to determine the city by ip.
For example:
www.ipinfodb.com/ip_location_api.php
ipinfo.io
ip-api.com/docs
There are also paid services, you can search.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question