How to verify from which country a particular IP is

Asked

Viewed 32 times

1

Well my question is this::

I have a PHP file, where I get the IP of the user however, I wanted to check which country is this user and insert in the database.

How can I verify from which country is that particular IP?

Thank you.

  • I wanted a concrete example, on the PHP site I don’t have.

  • The concrete example depends on which IP database solution you will adopt. Almost all use normal HTTP requests, some JSON, and these requests have several examples on the site (although they are not specifically localization, the logic is identical). Take a look at the solutions of the indicated question, that most of them have examples of how to use on the sites themselves.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.