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
10
votes
5 answers

Associate IP addresses with countries

I want to show country flag depending on ip address I receive at server side. Are fixed ip addresses are assigned to countries ? Where can I get database for ip address to country mapping ?
Xinus
  • 29,617
  • 32
  • 119
  • 165
9
votes
4 answers

How to download GeoLite2-Country.mmdb.gz now need to add access code

Plugin I have uses this url which no longer works as need a license key obviously now https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz I have tried this url (Note: I have removed my license key from the below) but it…
Peter Gosling
  • 101
  • 1
  • 1
  • 2
9
votes
1 answer

Get user geolocated country name in Woocommerce 3

I would like to add "We ship to {country name}" in WooCommerce header based on user geoip country name? I would like to write html content in the header of my WooCommerce store, such as We ship to "Your Country name". Any help will be really…
Kristina
  • 93
  • 1
  • 3
9
votes
1 answer

How to find historical geolocation for an IP address, perhaps using maxmind?

I was wondering if there is any way to find historical geolocation IP information? Everything I've been able to find discusses current data, but I've been unable to find any way to query a service or DB to, for example, look for information on an IP…
waffl
  • 5,179
  • 10
  • 73
  • 123
9
votes
1 answer

Should I update GeoLiteCity.dat periodically?

Logstash can make use of a bundled GeoLiteCity.dat database for IP address geographical lookups. Is this database the same as the one provided by MaxMind? MaxMind updates the database on the first Tuesday of every month. Would it be smart to set up…
Larry Silverman
  • 1,043
  • 1
  • 11
  • 30
8
votes
2 answers

Geoip2's python library doesn't work in pySpark's map function

I'm using geoip2's python library and pySpark to get the geographical address of some IPs. My code is like: geoDBpath = 'somePath/geoDB/GeoLite2-City.mmdb' geoPath = os.path.join(geoDBpath) sc.addFile(geoPath) reader =…
Dong
  • 125
  • 1
  • 7
7
votes
1 answer

How install the Geoip2 module on a Nginx running in a production environment?

Can someone explain to me how to install the Geoip2 module on a Nginx 1.14 running in a production environment without breaking the current configuration? I only find sources indicating how to compile Nginx with the geoip2 module during a first…
Sandra
  • 1,596
  • 15
  • 22
6
votes
4 answers

GeoIP table join with table of IP's in MySQL

I am having a issue finding a fast way of joining the tables looking like that: mysql> explain geo_ip; +--------------+------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra…
Andrey Cizov
  • 695
  • 10
  • 20
6
votes
0 answers

Maxmind .MMDB to .DAT? mod_maxminddb in Debian Repo?

There is allready another Thread about this which isn't really answered: How to Convert a Maxmind .MMDB to .DAT? Here Greg Oschwald, working at Maxmind, said that "The Legacy GeoIP builds (.dat) are not going away in the near future". Yeah, but the…
daily
  • 215
  • 1
  • 12
6
votes
1 answer

using GeoIP with django on appengine

I tried geodjango recently, and worked just fine for me, even without installing that C library. But when I used the same project in the appengine sdk, it fails whenever it tries to import the GeoIP class then I looked into the differences, I…
HXH
  • 348
  • 1
  • 3
  • 11
6
votes
3 answers

How to install a PHP extension witn Amazon AWS Elastic Beanstalk?

We are using aws elastic beanstalk for our PHP application on EC2 instance. Since we opted for load balancing, it keeps changing the instance time and again. I am wondering if we install a PHP plugin, will it be affected by change of instance or it…
6
votes
2 answers

How accurate is Maxminds GeoIP2 compared to GeoLite2 at the first tuesday of the month exactly?

I would like to know how much the database GeoIP2 is more accurate then the GeoLite2 database, when both databases are downloaded at the first tuesday of the month. Are there just some ip ranges omitted to get a less accurate dataset?
user1861174
  • 507
  • 1
  • 5
  • 14
6
votes
4 answers

What's the most accurate way to determine user geolocation in the browser?

I found a few examples suggesting Google AJAX APIs. This link typifies the advice I have found so far: http://briancray.com/2009/05/29/find-web-visitors-location-javascript-google-api/ However, the location is often wrong with the Google APIs. Other…
Crashalot
  • 33,605
  • 61
  • 269
  • 439
6
votes
3 answers

IP address for testing MaxMind GeoIP DB

I'm experimenting with the MaxMind GeoIP (lite) DB. Part of this is trying to see if I can make solid unittests. For unittests I'd need to have some IP addresses I can rely on sending the same information always. Most IP addresses will move around,…
Martijn
  • 3,696
  • 2
  • 38
  • 64
5
votes
4 answers

How can I get the user's IP while using both CloudFlare and MaxMind's GeoIP with mod_geoip?

CloudFlare provides the user's country from the originating IP but I need location on a city level so I've added MaxMind's GeoCityLite using the mod_geoip Apache script. The problem is now to get the IP in a php variable, I'm using something…
hellodolly
  • 149
  • 1
  • 3
  • 11
1
2
3
46 47