Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Oct 13, 2014 12:59 pm 
Offline
Newbie

Joined: Mon Oct 13, 2014 12:53 pm
Posts: 2
Hi, does anyone know if it's possible to roll out a new website to a general area/region before going nationwide? I would actually like to limit to a specific state but that's wishful thinking I suppose. I realize it may not be 100% accurate when throwing mobile in the mix, but 90% is fine.

Thanks! -Mike


Top
   
PostPosted: Mon Oct 13, 2014 1:14 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
The word you need to search on is "geolocation"; e.g. http://stackoverflow.com/questions/1671 ... ebsite-php

MaxMind are a big name in this area

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
PostPosted: Mon Oct 13, 2014 6:04 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Worth noting is that IP-based geolocation is not at all accurate under many common cases. Here's five IP geolocation results within a few miles of each other:

My work computer: Florida
Tim Hortons WiFi near my office: Vancouver, BC, Canada
My cellphone: Detroit, Michigan
My home desktop computer, left-most monitor: Rochester, New York
My home desktop computer, right-most monitor: New York City, New York

Most accurate is using HTML5 Geolocation to ask the user's device to disclose its location. However, the user must give their consent before their location will be provided, and if they're using a device without GPS, it's going to be a crapshoot anyway (probably falling back to IP-based geolocation).

In short, there's no correlation between where a user is and where their IP address suggests they are, or even any guarantee that an IP address will only emit traffic originating from one geographic area. (Consider NASA's firewall... it's got a space station full of people and an entire planet inhabited solely by IP-enabled robots behind it, not to mention zillions of employees everywhere from Antarctica to Ohio. Headquarters is Washington, DC, so that's probably where their Internet bill goes. Choose that.) Your plan is not an uncommon one, but it is not possible given the Internet's design.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Tue Oct 14, 2014 12:25 am 
Offline
Newbie

Joined: Mon Oct 13, 2014 12:53 pm
Posts: 2
Great feedback worth thinking about. Hard to believe there is no easy way to accomplish this accurately. Just shows how young the internet still is. Thanks.


Top
   
PostPosted: Tue Oct 14, 2014 1:27 am 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Do a "by invitation only" roll out - put up a web site, collect names, emails, and zip codes, then give access to the people in the state you want to start first. It's not 100% accurate, but way better then geolocation via IP.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Tue Oct 14, 2014 6:29 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
mgaccess wrote:
Just shows how young the internet still is.


It isn't really a design requirement, and it would require a lot of tradeoffs for very little benefit (do you still have a landline phone, listed in the phone book?). The closest we'll probably get is something like HTML5 geolocation, where the user's equipment is able to tell the server its location. For 99.9% of situations, it makes no difference whatsoever where a user is physically. (Sometimes it does... but that problem is not unique to IP.)

(Note that distributed services like OpenDNS, CloudFlare, etc., optimize for shortest *network* distance, which is not necessarily physical distance. Despite Toronto, Ashburn, and New York City being closer physically, Chicago is closest network-wise for me, so that's the OpenDNS location I end up using. Routing me to Toronto would be silly.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: mwchase and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group