Questions tagged [geoip]

GeoIP is the process of analyzing an IP address and determining the geographical location of that end point.

GeoIP assigns a location to an IP address, generally by doing a lookup in a specifically created database. Popular providers are MaxMind, Google, InfoSniper, and IP2Location. These, in turn, are based on Regional Internet Registries (RIR).

Common uses for this location information include:

  • Selecting the closest mirror for a download
  • Providing region specific billing information (currency, shipping cost)
  • Regionalizing the content of a page (local deals or specials)
694 questions
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
1 answer

What is the accuracy on country level of GeoLite2 Country DB?

What is the accuracy on the country level of GeoLite2 Country DB? Also, is there any data about the accuracy on the country level for all different DBs(including both paid & free)available in the market?
learning_13
  • 140
  • 7
2
votes
0 answers

$geoip_city variable on nginx not working

I have nginx-1.12.1 installed on Centos 6.7 final. Already loaded the --with-http_geoip_module on configure arguments. I have this code on my nginx.conf inside http context geoip_city /usr/local/share/GeoIP/GeoLiteCity.dat; Also add this code…
meowskie
  • 21
  • 5
2
votes
1 answer

trying to auto populate fields using django views

my question is similar to this question em using geoip to find the latitide and longitude of a user through IP address. i am doing something like this in my views g=Geoip() lat,lon=g.lat_lon(some ip) here i want the forms fields to be filled in…
Rida
  • 21
  • 1
2
votes
2 answers

Speed up dataframe .loc()

I have a list of approx 400k IP (stored in a pandas DataFrame df_IP) to geolocate using maxming geoIP database. I use the City version, and I retrieve the city, lattitude, longitude and county code (departement in France), because some cities have…
CoMartel
  • 3,521
  • 4
  • 25
  • 48
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

Can I use geoip_country_code_by_name to serve specific content to more than one country?

Currently I am using the php geoip_country_code_by_name function to serve up different content for different countries from an array which looks like this: array( 'meta_description' =>…
2
votes
1 answer

Différence between installing geoip as a PHP module VS as an apache2 module

If apache module is installed, you get country code with : $_SERVER['GEOIP_COUNTRY_CODE'] With the PHP module/library, you use : geoip_country_code_by_name($_SERVER['REMOTE_ADDR']) What is the difference (performance etc...) between these 2…
fred727
  • 2,644
  • 1
  • 20
  • 16
2
votes
1 answer

Zeppelin Spark Maxmind jackson.databind NoSuchMethodError

I'm experimenting with using Zeppelin / Spark to perform geo-location on IP addresses using the Maxmind GeoIP library. I am encountering a NoSuchMethodError which from reading the forums appears to be a dependency issue with the method not being in…
user2392965
  • 435
  • 2
  • 4
  • 13
2
votes
2 answers

Error installing GeoIP2: geoip2/geoip2 v2.3.1 requires maxmind/web-service-common

I am running into this error while trying to install GeoIP2. Unfortunately, the error message is not very googlable and I can't figure out how to fix it. It is clear that something is missing, but I am not sure what. I am not very experienced with…
Arthur Tarasov
  • 3,517
  • 9
  • 45
  • 57
2
votes
1 answer

GeoIpLocation - How to get State and County? (OR, how to get State and County from a zip code) C#

I'm using a method to get an IipLocation object from an IP address. This is the code that returns the Location object: public IIpLocation GetIpLocation(IPAddress ipAddress) { ipAddress.CheckNull("ipAddress"); IIpLocation ipLocation = null; …
Erica Stockwell-Alpert
  • 4,624
  • 10
  • 63
  • 130
2
votes
1 answer

ELK - Kibana doesn't recognize geo_point field

I'm trying to create a Tile map on Kibana, with GEO location points. For some reason, When I'm trying to create the map, I get the following message on Kibana: No Compatible Fields: The "logs" index pattern does not contain any of the following…
2
votes
1 answer

nginx GeoIP Cache Key

I want to use GeoIP in nginx to serve different pages based on country. I also want to cache everything. When a user from the US goes to my homepage, I want them to see the US version of the homepage from cache. When a user from the UK goes to my…
stampede76
  • 1,521
  • 2
  • 20
  • 36
2
votes
1 answer

Get User's Country Code in a Function

I want to get a user's country code and compare it with a variable inside a function. I downloaded the maxMind GEOIP_STANDARD database file 'geoip.dat' and the file 'geoip.inc' and placed them in the root directory. I then put the following code…
j8d
  • 446
  • 7
  • 23
2
votes
2 answers

GeoIP nearest (closest) country

Guys i have a little problem, i tried to find some examples on GeoIP based system that expands searches based on nearest neighbor countries. For example the visitor is from UK and tries to find IPs from France, Spain, Belgium etc. not for example…
Anonymous
  • 748
  • 3
  • 10
  • 22