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?
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
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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now