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

Cache JSON response

I using some GeoIP service to place country flag on pages depends on country IP. And I need to cache JSON response for all pages on my site. This code placed into header.php: $.getJSON('http://smart-ip.net/geoip-json?callback=?', function(data) { …
Dmitry
  • 544
  • 1
  • 5
  • 12
3
votes
1 answer

How to detect nearest server to test latency/ping speed using Javascript?

I'm implementing a browser extension which should connect to the nearest server to test the ping speed. To have more details, kindly have a look on SpeedTest, it first calculates the ping time. And to calculate this ping time, it detects the nearest…
Ashraf Bashir
  • 9,686
  • 15
  • 57
  • 82
3
votes
4 answers

Installing PERCL GeoIP for PHP on windows XAMPP

I'm currently working on an application that needs some GeoIP functions, I've gotten the extension from http://windows.php.net/downloads/pecl/releases/geoip/1.0.8/ however, i'm having some difficulties installing the extension on xampp for windows.…
Tamara
  • 417
  • 1
  • 6
  • 20
3
votes
1 answer

geoip redirect countries to 403

I am having problem with blocking countries with geoip. When I use my hosting account utility to block countries, it creates the below script in a .htaccess. The problem is it does not seem to be working (added US but was not blocked). GeoIPEnable…
E G
  • 37
  • 1
  • 10
3
votes
1 answer

Alternative IP to location database

Is there any alternate database which compete with maxmind and ip2location city database? I gets different results in these databases for an ip entry. So which one should I trust. country, state, city, isp, latitude for ip 117.201.195.13 in maxmind…
Krishna Raj
  • 846
  • 1
  • 12
  • 33
3
votes
1 answer

How reliable are GeoIP services for mobile roaming?

Currently, I'm using Quova but I'm struggling to find/understand the accuracy of GeoIP (to a country resolution) when a user is on a mobile network (not WiFi) and roaming outside of their home country. If the IP address of a device is allocated…
KevinD
  • 1,769
  • 10
  • 25
3
votes
3 answers

geolocating an IP address

I'm looking to geolocate my server requests by continent. Basically, after doing some initial research, it seems that there are 3 approaches: 1) using the geolocation provided by browsers (but I think noone seriously click "Yes" when the browser is…
frenchie
  • 51,731
  • 109
  • 304
  • 510
3
votes
1 answer

Magento - How I can Run Store by Country by GeoIP?

I want run store by IP of the customer. In the backend of Magento, the user may configure the concret Store to load per country. Taking a glance, I see the method at class Mage_Core_Model_App public function run($params) { $options =…
davidselo
  • 1,326
  • 2
  • 19
  • 34
3
votes
3 answers

location detection in web browser

I am searching for a method to locate the user location while visiting my website, i have tried Maxmind but they seems to be inaccurate in the city level. the information i want is (Country, City, longitude, latitude) i want the country and the city…
admirer
  • 37
  • 1
  • 1
  • 2
2
votes
2 answers

From Java, how to find out the physical location (city, country) of the computer where it's running?

Is it possible to know from Java where the computer where it's running is? If not, how can I do it using JNI? Or any scripts? I'm building a Java system, and on login, I'm supposed to register on the database who's logging in, where and when. I just…
2
votes
0 answers

location based inline popup jquery geoio

im trying to add a location based popup to a popup i already have but i dont want both of them to show ie. if there is the USA or Canada i want them to see one popup and if there in the rest of the world see the other. So far with the help of JFK…
user1037444
  • 313
  • 1
  • 6
  • 13
2
votes
1 answer

What is the best way to debug a VCL file?

I am writing inline C in my VCL file. More specifically I am using Maxmind's GeoIP database to geocode a visitor's IP. I have everything installed, I have followed all the wiki examples for GeoIP database and everything works swimmingly. I am trying…
Arlo Carreon
  • 441
  • 1
  • 4
  • 11
2
votes
5 answers

How to decide user's language

I am looking for the best way to decided web user's language so that content can be presented in his native language. I want to know about pros and cons of different techniques. Few options I am looking at are: Using PHP geoIP extension which uses…
Gary Lindahl
  • 5,341
  • 2
  • 19
  • 18
2
votes
2 answers

Is MaxMind's GeoIP C Implementation Thread Safe?

Assume that a process is using the MaxMind GeoIP C API in many separate threads. Are concurrent calls to GeoIP_record_by_addr safe? Assume that this is the only process concurrently accessing the data and a single GeoIP handle is being used. Thanks…
Sam
  • 2,939
  • 19
  • 17
2
votes
2 answers

How to determine remote computer location , given its IP (without paying)?

I've been working on this project for a while. I found out that there any many free databases which map between IP number (sort of manipulation of the IP adress) to a long and latitude cordinates. Howerver , these database accuracy is realy bad. I…
RanZilber
  • 1,840
  • 4
  • 31
  • 42