pajeet Posted September 30, 2020 Share Posted September 30, 2020 Hello, I want to use maxmind's GeoIP to get the location of the users. I have tried to follow this thread -> https://www.helionet.org/index/topic/20550-solved-geoip/But it seems like it is outdated and they do not provide .dat databases anymore and moved to GeoIP2.How to get it work now? Quote Link to comment Share on other sites More sharing options...
pajeet Posted September 30, 2020 Author Share Posted September 30, 2020 Okay, I got it to work. But with a .dat database.First, downloaded geoip.inc & GeoIPv6.dat file from here:https://github.com/vichan-devel/vichan/blob/master/inc/lib/geoip/geoip.inchttps://github.com/vichan-devel/vichan/blob/master/inc/lib/geoip/GeoIPv6.dat Then, I wrote this code to show country names: https://pastebin.com/L4pH2w4Z Quote Link to comment Share on other sites More sharing options...
Krydos Posted September 30, 2020 Share Posted September 30, 2020 Awesome, I'm glad you got it figured out, and thanks for sharing your solution. I'm sure people will find it useful when they try to do the same and search these forums. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.