Questions tagged [geoip2]
The geoip2 tag has no usage guidance.
66
questions
0
votes
0answers
18 views
Both ReWriteRule and Allow / Deny not working with GeoIP
I want to allow visitor form Canada only, but it doesn't seem to work. It blocks for me even when I am trying to access from Canada.
Alias /nextcloud "/var/www/html/nextcloud/"
<...
0
votes
1answer
83 views
GeoDjango: Getting accurate device location with geoip2
I am trying to get the users device location. But the geoip2 returns a location far away from users location (almost 20km-25km). When I connect my device through a mobile network it shows a different ...
0
votes
0answers
43 views
geoIp not showing country name in nginx log file
I'm trying to create Nginx log file with country name . i took help from this link. but instead of country name it store "-" in my log file .
my log :
103.102.43.25 - - [02/Nov/2020:07:10:...
1
vote
0answers
119 views
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....
0
votes
1answer
363 views
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 ...
0
votes
1answer
163 views
How to block a page for certain countries (geoip2) without if?
How it is possible without using if but with map in nginx with the module --with_geoip2_module (dynamic) to block all countries except the chosen and all ip except the chosen, to make it work like ...
0
votes
0answers
17 views
IP doesn't exist in database
I'm trying to make a geolocator in NetBeans with the GeoIP2 API, but when I put my IP it says it doesn't exist. What am I doing wrong?
0
votes
0answers
41 views
How much memory does geoip2-node reader require?
I am using geoip2-node for use of the reader working with locally stored .mmdb files. I get the results just fine but with each request the docker container that it runs in, increases by 67MB.
Is ...
1
vote
0answers
23 views
Updating geoip2 DatabaseReader in multithreaded environment
I am using a DatabaseReader object from maxmind geoip2 API.
val reader = new Builder(new FileInputStream(filePath)).build. This object is already thread safe and is shared between several reader ...
0
votes
2answers
63 views
NGINX GeoIP2 blocking countries and implementing custom 403 page
This is driving me mad, hopefully someone can help. I have the following warning: But the 403 page is not friendly to blocked countries, I want to redirect people who are blocked to a custom 403 page.
...
0
votes
0answers
28 views
Pass variable from nginx to socket.io
I am running nginx with geoip2 module. I need to pass geo data to socket.io workers.
nginx.conf
http{
geoip2 /usr/share/GeoIP/GeoLite2-Country.mmdb {
auto_reload 60m;
$...
0
votes
1answer
44 views
Java geoip2 java.io.FileNotFoundException:
I use geoip2 to determine the country by ip. During development and testing of the code, I have no problems, but when I run the compiled archive, I encounter a java.io.FileNotFoundException exception. ...
0
votes
0answers
17 views
Installation questions about Gx GeoIP2
I went to the nginx official to have a look.
GeoIP's GeoLite Legacy database has been terminated
(https://docs.nginx.com/nginx/admin-guide/dynamic-modules/geoip/)
Official website instructions ...
0
votes
0answers
46 views
Laravel : AddressNotFoundException The address <ip adress> is not in the database
I have pre build project. The api can be accessed through my internet. But when I try to access api from another network I get:
(1/1) AddressNotFoundException
The address is not in the ...
0
votes
0answers
29 views
how to resolve the conflict in jars between hive and udfs
I'm developing a hive udf which use the dependency of geoip2-2.12.0.jar, maxminddb-1.2.2.jar and try to deploy on hive 2.3.
I found that geoip2-0.4.0.jar, maxminddb-0.2.0.jarare in ${HIVE_HOME}/lib, ...
0
votes
0answers
216 views
How can I compile a GeoLite CSV file into MMDB again?
I have made a few corrections to location names in a GeoLite2 CSV file.
My site only retrieves locations from the MMDB file, so how can I compile back the changed CSV file into the MMDB binary again.
...
0
votes
0answers
80 views
Changes to organization names in GeoIP databases
Anyone have more details about this?
GeoIP2 Release Notes:
Effective January 21,2020, many records for the autonomous_system_organization data field
in GeoIP2 databases and web services will change ...
4
votes
2answers
748 views
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 ...
0
votes
3answers
595 views
Updating GeoLite2 CSV files
Since 1.1.2020 one need to register with MaxMind to get access to the GeoLight2 databases.
I have just sucessfully installed the geoipupdate procedure and can update the GeoLite2 databases.
But I ...
0
votes
1answer
88 views
Django geoip2 + Maxmind working locally, but not in production?
I'm able to get a response object and render it to the page locally, but on my live site it doesn't work.
I'm using Maxmind's binary database, which is the GeoLite2-City.mmdb file in my project ...
0
votes
1answer
208 views
Redirection of urls based on geo location on apache 2 server using mod_geoip2
My use case is of showing different content based on the user country. I do have separate HTML5 pages for different countries in separate directories. I want to internally redirect the user to ...
0
votes
1answer
100 views
How to fix “django.contrib.gis.geoip2 has no attribute GeoIP2”
I am trying to retrieve my visitors' location.
After successfully retrieving the IP Adress I want to use
the GeoIP2 object to get information about the location.
https://docs.djangoproject.com/en/2.2/...
0
votes
1answer
155 views
How to fix “java.lang.NoSuchMethodError” for geoip2 java running under Hive
I am having trouble when executing a UDF with geoip2 (maxmind) as dependency under Hive 2.3.4 (java 8) the same code works fine under older versions of hive that use java 7 and also under Presto that ...
0
votes
1answer
127 views
GeoIP2 with Directory Location not working | without directory location work
my problem is this. GeoIP2 does not work if I specify location with a directory, but without a location already.
with Directory Location > not working
location /test {
if ($allowed_country = ...
0
votes
1answer
48 views
Is it possible that 3 IP addresses from the same network come from different countries?
https://www.maxmind.com/en/geoip2-precision-demo shows 3 different countries for 5.62.61.176, 5.62.61.196 and 5.62.61.172. Is it possible?
0
votes
1answer
596 views
geoip2 for nginx not wirking
i have Problem with compile "geoip2" for nginx. my ".so" is not working.
my install way:
cd /opt/
sudo add-apt-repository ppa:maxmind/ppa && apt update & sudo apt install libmaxminddb0 ...
-1
votes
1answer
121 views
Retrive Lat Long from ZipCode
Is their is a way to get Lat Long from MaxmindDb through ZipCode rather than Ipaddress. As i cannot find any method to fetch details through zipcode. I don't want to use Google Maps Api.
using (var ...
1
vote
1answer
117 views
Requirements for GIS, PointField, and Distance Calculation with Geography=True, Database question included
Referring to Django: Plugins, packages, or built-in functions.
Do I need to install other plugins to use gis functions "PointField" and distance calculation queries with dwithin?
Error now is ...
10
votes
4answers
22k views
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
...
0
votes
1answer
192 views
GeoIP in Matomo, previous Piwik map Tokyo wards
According to https://dev.maxmind.com/geoip/legacy/release-notes/
Effective July 24th, we will be mapping more IP addresses to special
wards of Tokyo instead of Tokyo itself.
Matomo that I use ...
0
votes
1answer
475 views
Does GeoLite2 provide coordinates?
I'm confused, does the free GeoLite2 database provide coordinates (latitude, longitude) anymore?
I have been using GeoLite and was able to use Geo::IP and ->latitude calls to get coordinates. I've ...
0
votes
0answers
306 views
GroIP Discontinuation
I use the GeoIP legacy code on my site. The way I'm reading this page is that the database for that version will no longer be updated. They say to use the GeoLite2 databases and
the GeoLite2 ...
1
vote
0answers
510 views
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....
-4
votes
1answer
677 views
GEOIP2 The value “*IP*” is not a valid IP address
When ever we try to let google crawl our website we get several errors in sentry:
The value "213.55.176.155, 66.249.93.93" is not a valid IP address
or
The value "213.55.176.162, 66.102.9.18" is ...
0
votes
1answer
168 views
Getting errors in using GeoIP2 in django
I am trying to use GeoIP2 to get user's cities and countries using their IP when they view my website.
I have downloaded 2 files from https://dev.maxmind.com/geoip/legacy/geolite/
, GeoLite Country ...
1
vote
0answers
132 views
Geolite2 alternative for city and country query?
I am using geolite2 to get location by IP address for my java application.
Now I need to get city list by country and country by city name.
Geolite2 doesn’t support it, is there any alternative for ...
3
votes
1answer
455 views
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 ...
0
votes
1answer
29 views
Where is the documentation and code synopsis for the GeoIP2 module?
I am trying to update my old Perl script to use the new
GeoIP2 module
but I can't find any documentation of the actual API calls anywhere.
The README on github, metacpan and the man pages are all the ...
3
votes
3answers
5k views
How to get latitude and longitude from IP address using maxmind?
I have been using geoip php extension for a while.
This extension does not provide me latitude and longitude as it was doing before.
Looking inside maxmind website I can read:
Note: After ...
0
votes
1answer
155 views
Performance difference on loading maxmind mmbd into memory as a hashmap
I am using GeoIP2 mmdb file to find the location of the user in real time. However, I wish to load the file into memory and then query on the hashmap instead of querying on the database every time.
...
1
vote
1answer
654 views
European Union Specific ISO-1366-1 Country Codes for GeoIP
With GDPR looming I put together a stupid script to block all European Union countries from accessing a site. The trouble is I couldn't find an exhaustive list of the EU country codes.
There is a ...
0
votes
0answers
304 views
Lookup CIDR on database with ip adress and take the closesd match
For my system i like to make a small country location detection. So i found this database:
https://github.com/datasets/geoip2
There are values like:
network,geoname_id,continent_code,continent_name,...
1
vote
0answers
169 views
How to include GeoLite2 database in a java application
I'm new in Java programming so don't hold it against me. I'm trying to include a Maxmind database in my application. I've been using a relative path when working on the project, similar to:
File ...
-1
votes
1answer
186 views
Maxmind GeoIP2 DB get Location region
I just upgraded to GeoIP2 and missing the Region field.
How can I extract the region from the CityResponse object?
I am using GeoLite2-City.mmdb
-1
votes
2answers
948 views
Why does Django raised IntegrityError :null value in column “user_id” violates not-null constraint when a form is committed?
I have a UserSession model that creates a session that uses the IPaddress, and city data to populate the model using Geip2. I set up a form that takes the info that I want the user to enter but get:
*...
4
votes
1answer
178 views
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 ...
0
votes
1answer
211 views
Containing a jar file and dependency in your exported jar file with maven
I am trying to program a plugin for BungeeCord (Minecraft) with geoip2. I am trying to contain the dependency "com.maxmind.geoip2" and the BungeeCord API jar file in my jar file because I'm getting a ...
0
votes
1answer
2k views
The file GeoLite2-Country.mmdb does not exist or is not readable
I am in a little project where I need to collect the country form people who submit a contact form to one site, now I'm using MaxMind/GeoLite2 reading the DB file with GeoIp2 v2.0 (installed from ...
0
votes
1answer
129 views
Do I need user permission to know their location using their IP?
I need to use user's IP address to get their approximate location like country, state and if possibly city. Do laws require me to get user's permission to use their IP address to find their location ...
1
vote
1answer
410 views
Maxmind DB convert ASN to IP
The Maxmind ASN Database can be used in python geoip2 to convert IP to ASN and ASN name. Similarly, how to get IP range(s) from AS number?