Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.101 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.80; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'utilizing': 0.09; 'browsers.': 0.16; 'cookies': 0.16; 'flush': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'specific,': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'user.': 0.19; 'machine': 0.22; 'header :User-Agent:1': 0.23; 'tells': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'leave': 0.29; 'tim': 0.29; 'asked': 0.31; 'away.': 0.31; 'extract': 0.31; 'location,': 0.31; 'actual': 0.34; 'subject:from': 0.34; 'could': 0.34; 'possible.': 0.35; 'there': 0.35; 'addresses,': 0.36; 'possible': 0.36; 'virtual': 0.37; 'being': 0.38; 'sometimes': 0.38; 'machines': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'house.': 0.60; 'till': 0.61; 'address': 0.63; 'information': 0.63; 'more': 0.64; 'different': 0.65; 'city': 0.66; 'side': 0.67; 'internet': 0.71; 'further,': 0.74; 'address,': 0.75; 'geo': 0.84; "isp's": 0.84; 'subject:Location': 0.84; 'visits': 0.84; 'tomorrow': 0.95 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re: Geo Location extracted from visitors ip address Date: Fri, 05 Jul 2013 17:18:03 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 174.32.174.34 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373059100 news.xs4all.nl 15925 [2001:888:2000:d::a6]:49131 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50021 On 07/05/2013 04:44 PM, Tim Roberts wrote: > ????? Gr33k wrote: >> >> Is there a way to extract out of some environmental variable the Geo >> location of the user being the city the user visits out website from? >> >> Perhaps by utilizing his originated ip address? > > It is possible to look up the geographic region associated with a block of > IP addresses. That does not necessarily bear any resemblence to the actual > location of the user. It tells you the location of the Internet provider > that registered the IP addresses. > To be more specific, the last time I checked, my IP address is registered to a location over 1000 miles away. And it's not a dedicated IP address, so it could very well be used tomorrow by someone 200 nmiles the other side of the registered location. Further, I sometimes use other ISP's with different addresses, even when I don't leave the house. And once I leave, anything's possible. The only things that travel with me and my machine are the cookies. So if someone has asked me my location, and if I told the truth, then that information could remain available till I flush my cookies or change Virtual Machines or even browsers. -- DaveA