Questions tagged [geoip2]
64 questions
13
votes
5 answers
GeoIP.dat.gz and GeoLiteCity.dat.gz not longer available? Getting 404 trying to load it
Started couple days ago i can't download
http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
databases which i use to enable ngx_http_geoip_module…

Chauskin Rodion
- 1,204
- 1
- 11
- 13
4
votes
2 answers
MaxMind pulling Geolite2 gets 401 Unauthorized
Geolite2 access changed on 12/30.
Today I registered for a Maxmind account, registered a license key (both one that "Will this key be used for GeoIP Update?" and one that will not) .. and now each time I enter I get a 401:
smachine:~# wget…

jg3
- 503
- 5
- 12
4
votes
1 answer
How to pull information saved from IP address call with GeoIP2() django models to display in my html
I have made function that gets the IP address and stores information from the city_data in GeoIP2(). I want to be able to get the Latitude and longitude from the city_data and display it in my html page.
The problem i seem to be arriving at is that…

Alvaro Sanchez
- 53
- 5
4
votes
0 answers
Where to initialize the MaxMind IP Database for Django Middleware Use Case
I have the need to test an IPs location during each request. Naturally, this fits nicely with writing a small piece of custom middleware.
Given this is python, is it better to initialize the GeoIP2 instance at the module level or should I…

AJ Venturella
- 4,742
- 4
- 33
- 62
3
votes
1 answer
Query by city name on geolite2 .mmdb file (JAVA)
I am using GeoLite2 to get Location by IP address for my java appliccation.
I want to get country by city from GeoLite2-City.mmdb file.
This is my reader :
DatabaseReader reader = new DatabaseReader.Builder(dbFileStream).withCache(new…

sam
- 1,073
- 4
- 13
- 27
3
votes
2 answers
Using geoip2 for timezone look up
The django.contrib.gis.geoip2 framework expose a high level geolocation api. I want to use it to look up the user timezone, but the queries do not return the timezone, although the maxmind documetion says that their databases include them. Am I…
user6216224
3
votes
2 answers
Custom MaxmindDB (geoip2) with Private IPs
How to create a custom Maxmind database with PRIVATE IPs address.
I need something like this Customizing Maxmind DB.
I tried to following this Building Your Own MMDB Database for Fun and Profit . So I changed the PERL script to the following:…

Rabbit
- 152
- 2
- 11
2
votes
2 answers
Maxmind Geoip2 API vs downloadable database
I was wondering the differences between the usage of maxmind downloadable database vs their direct web API. Any particular benefits if I download the maxmind database locally to my server instead of using their direct web API? Is there any accuracy…

Damian Niels
- 43
- 4
2
votes
0 answers
Using longitude and latitude in GeoIP to get geographical information
I have been using GeoLite2 from the GeoIP package in Python to geolocate IP-adresses. It is quite easy. Using this code i.e. i can obtain a lot of information about the IP-address:
reader = geolite2.reader()
reader.get('131.165.115.153')
Which…

Jonathan Marin
- 57
- 6
2
votes
0 answers
GeoLite2 database region code
I have been asked to implement regions recognition from IP addresses with GeoIP that is already implemented (version 1 though, not version 2) for my company's website. It is developped with symfony, and i'm quite new to the framework, but also to…

R.Verny
- 21
- 2
2
votes
0 answers
nginx and geoip2 (geolite2) error: is not binary compatible
nginx does not come with support for geoip2. on the nginx documentation there is a reference for a geoip2 3d party module, so i thought to give it a try, but i guess there is something that i am missing.
here are some details of the machine i am…

Mr.
- 9,429
- 13
- 58
- 82
2
votes
1 answer
Maxmind GeoIP2 tutorial (How-to)?
I used GeoIp, with pure PHP codes..
but GeoIp2 become namespaced and etc, and at this moment i couldnt find out how to use that.. i have downloaded GeoLite2-Country.mmdb, and now how to get the country name for IP, i.e. 123.123.123.123.
p.s. I dont…

T.Todua
- 53,146
- 19
- 236
- 237
1
vote
2 answers
add Nginx 1.20.1 GeoIP2 module
I'm trying to configure nginx to build the GeoIP2 module, by following this installation:
https://github.com/leev/ngx_http_geoip2_module
first I still didn't understand what is defrences between static and dynamic modules,
and why can't I just apt…

iTaMaR
- 189
- 2
- 10
1
vote
0 answers
When do variables get calculated on NGINX
Declaring new variables such as map or geoIP2 are always on the the http context.
Lets say I need to check for location of an ip only on certain location block in my configuration,
does that mean that this variables related to the geoIP2 will be…

iTaMaR
- 189
- 2
- 10
1
vote
0 answers
How to block visitors from particular country with nginx and GeoIP Module
I want to block a particular country's visitors to access my website www.mainwebsite.com through Nginx and GeoIP Module.
First I tried on www.test.com. What steps I followed on test website,www.test.com, before trying on…

rajeev singh
- 73
- 2
- 9