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
3 answers

Is there any mapping between MaxMind's locid and GeoNames id?

I use GeoLite from MaxMind. My real task is to determine CityId in our system by specific IP. In MaxMind I find locid by IP and then use hand-maded table of cross between locid and our CityId. But this cross-table is uncompleted. I found good file…
Stas Parshin
  • 7,973
  • 3
  • 24
  • 43
2
votes
3 answers

Get a localized name of the users city via Maxmind GeoLite2 Free

i want to show the german name of the users city. Is it possible with the free Version of Maxmind Geoip? I did not find a way to open the GeoLite2-City.mmdb or GeoLiteCity.dat, to see which cities are listed, for building my own translation service.…
Moritz
  • 334
  • 5
  • 17
2
votes
2 answers

geoip_country_name_by_name(): Required database not available at C:/xampp/apache/bin/GeoIP.dat

do you know why it's happens? A PHP Error was encountered Severity: Warning Message: geoip_country_name_by_name(): Required database not available at C:/xampp/apache/bin/GeoIP.dat. i just installing GeoIP thanks for advance.
smftr
  • 923
  • 3
  • 17
  • 31
2
votes
1 answer
2
votes
1 answer

Install GeoIP (PECL) for Piwik on Ubuntu 13

How do I install GeoIP (PECL) on Ubuntu 13. I have tried "apt-get install php-geoip" but it can't find the package.
2
votes
1 answer

Is MaxMind's GeoIP2 java API thread-safe?

I know that it's possible to make the GeoIPLite legacy Java API thread-safe by using certain caching parameters, but the GeoIP2 docs for Java or C don't mention the word "thread" at all. I'd like to be able to build() a DatabaseReader once and then…
kbyrd
  • 3,321
  • 27
  • 41
2
votes
1 answer

how to get hosted ip and country name of a domain using php

In my application after entering the domain name in a text field I want to auto populate the domain's IP and Country.
user2511671
2
votes
2 answers

How to grant access to a specific IP address that is blocked by GeoIP[country] in nGinx?

Can't find solution how to solve this. Here is how I blocked an access to the country and at the same time I need to grand access to a specific IP that is from blocked country.
Edgars Ozolins
  • 298
  • 5
  • 11
2
votes
1 answer

Django giving me local ip always on my site

I am using django-ipware for getting the Public IP of the user https://github.com/un33k/django-ipware My site is hosted on by virtual machine with djnago , mod_wsgi , apache This is my code g = GeoIP() ip_address =…
user1958218
  • 1,571
  • 3
  • 18
  • 28
2
votes
3 answers

Geo redirect user just once using php

i can use this script easily when users land on site.com/redirect.php they get redirected to appropriate TLD according to geo IP but when i add this code in 'index.php' it creates a redirect loop. Can you help me modify it so that it doesn't create…
M Ali Salim
  • 109
  • 2
  • 14
2
votes
0 answers

Magento index.php with Geoip

I wrote a little piece of code for Magento in index.php to automatically switch store-view based on the country_code from Geoip. The code works fine, but I'm not an expert and I'm not able to judge if I wrote the code effectively recourse-wise. I…
Remy Nagelmaeker
  • 215
  • 1
  • 5
  • 16
2
votes
3 answers

install php extension geoip on windows

When I'm trying to install geoip ext via PECL I got this: C:\Users\admin>pecl install geoip No releases available for package "pear.php.net/geoip" install failed How to do it right?
Yekver
  • 4,985
  • 7
  • 32
  • 49
2
votes
1 answer

GeoIP look-up -- options and data persistence

Trying to decide the best solution for GeoIP look ups. The options seem to be: 1. Download a premium database and do lookups 2. Download a free database and do lookups 3. Hit a free web API 4. Hit a paid web API. We are going to have to do this…
Clay Wardell
  • 14,846
  • 13
  • 44
  • 65
2
votes
2 answers

Avoid running GeoIP on every page

This is the module I am working with: http://wiki.nginx.org/HttpGeoipModule From what I can see, since it is configured on the nginx config and uwsgi it looks like there is no choice but to have it run the geoip on every page and then only collect…
Jimmy
  • 12,087
  • 28
  • 102
  • 192
2
votes
6 answers

Web service to GeoIP

Is there a reliable web-service that provides an API to turn an IP address into a location, i.e. city, region, country. Willing to pay, but need something solid and reliable.
Justin
  • 42,716
  • 77
  • 201
  • 296