sasori Posted February 2, 2012 Share Posted February 2, 2012 Hi, how to determine which country the IP is coming from ? like e.g when a visitor came to a site, I can log the ip using $_SERVER['REMOTE_ADDR'] , but that's all a combination of numbers, if let's say I want to log only the IP address coming from the US,AU,UK, or any other country that I want specifically, how to do that? Link to comment https://forums.phpfreaks.com/topic/256248-ip-logging-by-country/ Share on other sites More sharing options...
Pikachu2000 Posted February 2, 2012 Share Posted February 2, 2012 Google 'php IP geolocation'. Link to comment https://forums.phpfreaks.com/topic/256248-ip-logging-by-country/#findComment-1313699 Share on other sites More sharing options...
The Little Guy Posted February 6, 2012 Share Posted February 6, 2012 You could also download this database: http://ip-to-country.webhosting.info/ Link to comment https://forums.phpfreaks.com/topic/256248-ip-logging-by-country/#findComment-1315217 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.