pajeet Posted September 30, 2020 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
pajeet Posted September 30, 2020 Author 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
Krydos Posted September 30, 2020 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
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.