Get Country of IP Address with PHP [duplicate]

There are free, easy APIs you can use, like those: http://ipinfodb.com/ip_location_api.php http://www.ipgeo.com/api/ http://ip2.cc/ http://www.geobytes.com/IpLocator.htm https://iplocate.io/ and plenty others. Which one looks the most trustworthy is up to you 🙂 Otherwise, there are scripts which are based on local databases on your server. The database data needs to be updated regularly, though. Check out this one: … Read more