ip-geolocation

Solutions for finding website visitor's geolocation

此生再无相见时 提交于 2019-12-06 06:01:25
I am aware that there are many services which provide geolocation tools for working out where users are visiting from. The website I'm working on is an e-commerce site which runs in multi-territories. When a visitor hits the website it should work out where they are from and show the relevant currency/language for the user. In the past we have used maxmind but I'm wondering if there are better solutions out there. I'm calling out to developers with experience in this area to share their knowledge and expertise on what's available and what the pro's and con's are of various solutions.

IP localization: mapping ip->location fixed over time?

廉价感情. 提交于 2019-12-05 22:42:30
I'm administering a web platform and want to get some statistical data, where my users come from. I can store the remote IP and I know that there are localization services that map an IP to a geolocation. How is this mapping done? Are there fixed tables, which IP address was given to which region? Must I request the mapping in the moment of the access or can I request it days/months/years later? In other words: Is the mapping from IP to location fixed or does it change over time? The mapping from IP to location change over time. I have read that the databases change 5% each month, even though

How do sites like Groupon segment geolocation based on the cities they have deals in?

心已入冬 提交于 2019-12-05 02:40:49
问题 Say you visit Groupon from the entry point Agoura Hills, CA - how would Groupon go about referencing that town to the nearest city that has deals (like Los Angeles) and choosing that as the closest? Is it grabbing lat/long from the location and calculating the distance from all available cities, choosing the shortest? If so, where can you get lat/long data like that for each city or an open api to use for this purpose? 回答1: Groupon seems to use limelightnetworks as their CDN provider and most

curl: (3) Illegal characters found in URL

半城伤御伤魂 提交于 2019-12-05 01:17:54
I want to bulk lookup ip details at ipinfo.io Here is my code. $ cat ips.txt | xargs -I% curl http://ipinfo.io/%/region The file "ips.txt" contains three ip addresses each on a separate line: (1) 8.8.8.8 (2) 8.8.4.4 (3) 1.2.3.4 This resolves only the last ip address. It should give (1) California (2) Colorado (3) Washington. I get the below: curl: (3) Illegal characters found in URL curl: (3) Illegal characters found in URL Washington If I write ips.txt with only one ip address (for example 8.8.8.8) I get good results. I think there is something wrong with either my text file or the way I am

location detection in web browser [closed]

北城余情 提交于 2019-12-04 14:09:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . 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 to be very accurate if possible. I have also used HTML5 but the

how to get the client/user location details

巧了我就是萌 提交于 2019-12-04 12:04:08
In my application I want to track the client/user location to store in database. I'm using this code to get the user IP Address string VisitorsIPAddr = string.Empty; if (HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != null) { VisitorsIPAddr = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString(); } else if (HttpContext.Current.Request.UserHostAddress.Length != 0) { VisitorsIPAddr = HttpContext.Current.Request.UserHostAddress; } ipAddress = VisitorsIPAddr; Using above code I'm getting the IP address. now the next step to get the timezone, Region,

How do sites like Groupon segment geolocation based on the cities they have deals in?

人走茶凉 提交于 2019-12-03 17:20:56
Say you visit Groupon from the entry point Agoura Hills, CA - how would Groupon go about referencing that town to the nearest city that has deals (like Los Angeles) and choosing that as the closest? Is it grabbing lat/long from the location and calculating the distance from all available cities, choosing the shortest? If so, where can you get lat/long data like that for each city or an open api to use for this purpose? Groupon seems to use limelightnetworks as their CDN provider and most CDNs due to their distributed nature having some kind of geo-location database which they can map the

Country name from an Ip address with free IP geolocation webservice

我只是一个虾纸丫 提交于 2019-12-03 09:04:07
First of all thanks to all .... I read that i can use the free IP geolocation webservice to get Country name from an Ip address. But how i get the response to my site , Actually this is what i look , In my site there is a need of displaying the country name from Ip address. Can uou please tell in detail... How can i display the country Name from that site .. http://www.maxmind.com/app/php You need to install the php module and then use the following code to get the country name: $country_name = apache_note("GEOIP_COUNTRY_NAME"); geoip_country_code_by_name can give you the country for an

Getting location details from IP in PHP

☆樱花仙子☆ 提交于 2019-12-03 07:50:57
问题 Is it possible to get the location details from the users IP Address in PHP. Any suggestions ?? Thanks 回答1: $ip = '98.229.152.237'; $xml = simplexml_load_file("http://ipinfodb.com/ip_query.php?ip=$ip"); print_r($xml); Output: SimpleXMLElement Object ( [Ip] => 98.229.152.237 [Status] => OK [CountryCode] => US [CountryName] => United States [RegionCode] => 33 [RegionName] => New Hampshire [City] => Manchester [ZipPostalCode] => 03103 [Latitude] => 42.9403 [Longitude] => -71.4435 [Timezone] =>

Change add to cart button based on IP-adress (GeoLocation) in Woocommerce

泄露秘密 提交于 2019-12-01 12:51:58
问题 I have a question about a WooCommerce shop I am currently working on. The shop only contains only two languages, Dutch and English. Is it possible when somebody from Poland visits the English version of the webshop and then navigates to the WooCommerce Products page it does not show the "Add to Cart" option but displays a different button with another link based on IP-adres (Geo-Location)? EDIT Ok, I managed to get it to work but not with your example: // Wijzigingen Links en teksten knoppen