Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.152 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.70; '*S*': 0.00; 'scripts': 0.03; 'that?': 0.05; 'skip:/ 10': 0.09; 'cc:addr:python-list': 0.11; 'desktops': 0.16; 'likely.': 0.16; 'origin.': 0.16; 'through.': 0.16; '\xc2\xa0i': 0.16; 'wrote:': 0.18; 'pointed': 0.19; 'cc:addr:python.org': 0.22; 'server.': 0.24; 'cc:2**0': 0.24; 'permission': 0.26; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'cgi': 0.31; 'file:': 0.31; "user's": 0.31; 'file': 0.32; 'probably': 0.32; 'url:python': 0.33; 'running': 0.33; 'addresses': 0.33; 'fri,': 0.33; 'subject:from': 0.34; 'except': 0.35; 'more,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'problems': 0.38; 'city.': 0.38; 'pm,': 0.38; 'aside': 0.39; 'users': 0.40; 'url:mail': 0.40; 'even': 0.60; 'phones': 0.60; 'full': 0.61; 'first': 0.61; "you've": 0.63; 'information': 0.63; 'kind': 0.63; 'such': 0.63; 'city': 0.66; 'between': 0.67; 'dont': 0.67; 'wish': 0.70; '8bit%:92': 0.71; 'to,': 0.72; 'jul': 0.74; 'directory:': 0.84; 'located.': 0.84; 'subject:Location': 0.84; 'joel': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ykBLnnRGDGJ1+ah3qXKaEEVDae8wQmnfizR5h07emhY=; b=vbCzXHENTyeJs5bUB6zwQlWU/o56zog5zJaaI0vq6s3Rq9o5/+QIWy7Cy2NNOCXSX9 RsB0nGT8/CT7eShlJtLRWNQhUNxws8BqiksKiHiSp8KPfipA+H+FWuMVWRnN/E+pV0Q9 A9b7JbA+tQ/yK4vtuxDc5G6HG7GxRsZy/TsPrDamItglqGV8ChmgfUOK6dRDvVDwTJF8 VJJfHiV4Cw1XtCEs1EhigeAPdQknttSYxv5kfpoMSFnkY2hEJEp6PvcFusufclhCcvk7 6GNmHrcG7+nwn3zy1hLAwCBZ0jzk6hqI5kNB943ji8YdwSIG2b2YEGRN5FD32nAJtbvV U0og== MIME-Version: 1.0 X-Received: by 10.221.55.132 with SMTP id vy4mr8636134vcb.73.1373074306724; Fri, 05 Jul 2013 18:31:46 -0700 (PDT) In-Reply-To: References: Date: Fri, 5 Jul 2013 21:31:46 -0400 Subject: Re: Geo Location extracted from visitors ip address From: Joel Goldstick To: =?UTF-8?B?zp3Or866zr/PgiBHcjMzaw==?= Content-Type: multipart/alternative; boundary=001a1133959e4da24d04e0cdc6fe Cc: "python-list@python.org" 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: 160 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373074314 news.xs4all.nl 15876 [2001:888:2000:d::a6]:48080 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50036 --001a1133959e4da24d04e0cdc6fe Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Jul 5, 2013 at 9:10 PM, =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 Gr33k wrote: > =CE=A3=CF=84=CE=B9=CF=82 6/7/2013 3:56 =CF=80=CE=BC, =CE=BF/=CE=B7 Joel G= oldstick =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > >> >> Your code is not finding /root/GeoIPCity.dat because your directory has >> this file: GeoLiteCity.dat >> >> FileNotFoundError: [Errno 2] No such file or directory: >> '/root/GeoIPCity.dat' >> > > My mistake. > Is there a differnce between GeoLiteCity.dat and GeoIPCity.dat > > > Aside from that you might have some permission problems since the file >> is owned by root. >> > > But he cgi scripts when running have full access to the server. > No? or they only have the kind of access that their user has also? > > > > > As was also pointed out, you only get information about where your isp >> is located. >> > Its the best i can get to, since there is no other way to match the users > city. > > =CE=92 Phones and tablets find location from triangulating cell > >> towers.=CE=92 I don't think that laptops have that capability, and desk= tops >> probably even less likely. >> > > What do you mean by that? > > > What is the purpose that you wish to serve.=CE=92 I don't think you've >> thought this through. >> > > I just dont want to store visitor's ip addresses any more, i prefer to > store its city of origin. > > Except its the ISP city that you are getting, not the user's > > > -- > What is now proved was at first only imagined! > -- > http://mail.python.org/**mailman/listinfo/python-list > --=20 Joel Goldstick http://joelgoldstick.com --001a1133959e4da24d04e0cdc6fe Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Fri, Jul 5, 2013 at 9:10 PM, =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 Gr33= k <nikos@superhost.gr> wrote:
=CE=A3=CF=84=CE=B9=CF=82 6/7/2013 3:56 =CF= =80=CE=BC, =CE=BF/=CE=B7 Joel Goldstick =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE= =B5:

Your code is not finding /root/GeoIPCity.dat because your directory has
this file: GeoLiteCity.dat

=C2=A0 =C2=A0 FileNotFoundError: [Errno 2] No such file or directory:
=C2=A0 =C2=A0 '/root/GeoIPCity.dat'

My mistake.
Is there a differnce between GeoLiteCity.dat and GeoIPCity.dat


Aside from that you might have some permission problems since the file
is owned by root.

But he cgi scripts when running have full access to the server.
No? or they only have the kind of access that their user has also?




As was also pointed out, you only get information about where your isp
is located.
Its the best i can get to, since there is no other way to match the users c= ity.

=CE=92 =C2=A0Phones and tablets find location from triangulating cell
towers.=CE=92 =C2=A0I don't think that laptops have that capability, an= d desktops
probably even less likely.

What do you mean by that?

=C2=A0

What is the purpose that you wish to serve.=CE=92 =C2=A0I don't think y= ou've
thought this through.

I just dont want to store visitor's ip addresses any more, i prefer to = store its city of origin.

=
Except its the ISP city that you are getting, not t= he user's


--
What is now proved was at first only imagined!
--
http://mail.python.org/mailman/listinfo/python-list



--
--001a1133959e4da24d04e0cdc6fe--