Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #50009 > unrolled thread
| Started by | Νίκος Gr33k <nikos@superhost.gr> |
|---|---|
| First post | 2013-07-05 22:08 +0300 |
| Last post | 2013-07-05 22:43 +0300 |
| Articles | 18 on this page of 38 — 12 participants |
Back to article view | Back to comp.lang.python
Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-05 22:08 +0300
Re: Geo Location extracted from visitors ip address Tim Chase <python.list@tim.thechases.com> - 2013-07-05 14:58 -0500
Re: Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-06 02:55 +0300
Re: Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-06 02:58 +0300
Re: Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-06 03:08 +0300
Re: Geo Location extracted from visitors ip address Joel Goldstick <joel.goldstick@gmail.com> - 2013-07-05 20:56 -0400
Re: Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-06 04:10 +0300
Re: Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-06 04:41 +0300
Re: Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-06 11:01 +0300
Re: Geo Location extracted from visitors ip address Chris Angelico <rosuav@gmail.com> - 2013-07-06 18:30 +1000
Re: Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-06 11:41 +0300
Re: Geo Location extracted from visitors ip address Tim Chase <python.list@tim.thechases.com> - 2013-07-06 06:20 -0500
Re: Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-06 23:14 +0300
Re: Geo Location extracted from visitors ip address Tim Chase <python.list@tim.thechases.com> - 2013-07-06 15:32 -0500
Re: Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-06 23:51 +0300
Re: Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-07 12:40 +0300
Re: Geo Location extracted from visitors ip address Dave Angel <davea@davea.name> - 2013-07-06 07:49 -0400
Re: Geo Location extracted from visitors ip address Robert Kern <robert.kern@gmail.com> - 2013-07-06 11:21 +0100
Re: Geo Location extracted from visitors ip address Grant Edwards <invalid@invalid.invalid> - 2013-07-08 14:27 +0000
Re: Geo Location extracted from visitors ip address Grant Edwards <invalid@invalid.invalid> - 2013-07-08 14:27 +0000
Re: Geo Location extracted from visitors ip address Joel Goldstick <joel.goldstick@gmail.com> - 2013-07-05 21:31 -0400
Re: Geo Location extracted from visitors ip address Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-07-05 22:52 -0400
Re: Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-06 10:10 +0300
Re: Geo Location extracted from visitors ip address Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-07-06 10:43 -0400
Re: Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-06 23:12 +0300
Re: Geo Location extracted from visitors ip address Tim Chase <python.list@tim.thechases.com> - 2013-07-06 15:33 -0500
Re: Geo Location extracted from visitors ip address Νίκος Gr33k <nikos@superhost.gr> - 2013-07-06 23:49 +0300
Re: Geo Location extracted from visitors ip address Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-07-06 18:36 -0400
Re: Geo Location extracted from visitors ip address Support by Νίκος <nikos@superhost.gr> - 2013-07-05 22:59 +0300
Re: Geo Location extracted from visitors ip address Tim Roberts <timr@probo.com> - 2013-07-05 13:44 -0700
Re: Geo Location extracted from visitors ip address Dave Angel <davea@davea.name> - 2013-07-05 17:18 -0400
Re: Geo Location extracted from visitors ip address Chris Angelico <rosuav@gmail.com> - 2013-07-06 11:06 +1000
Re: Geo Location extracted from visitors ip address Tim Chase <python.list@tim.thechases.com> - 2013-07-05 17:21 -0500
Re: Geo Location extracted from visitors ip address Grant Edwards <invalid@invalid.invalid> - 2013-07-05 22:24 +0000
[OT] Re: Geo Location extracted from visitors ip address Tony the Tiger <tony@tiger.invalid> - 2013-07-06 13:23 -0500
Re: Geo Location extracted from visitors ip address Joel Goldstick <joel.goldstick@gmail.com> - 2013-07-05 15:23 -0400
Re: Geo Location extracted from visitors ip address Jerry Hill <malaclypse2@gmail.com> - 2013-07-05 15:28 -0400
Re: Geo Location extracted from visitors ip address Support by Νίκος <nikos@superhost.gr> - 2013-07-05 22:43 +0300
Page 2 of 2 — ← Prev page 1 [2]
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Date | 2013-07-05 21:31 -0400 |
| Message-ID | <mailman.4320.1373074314.3114.python-list@python.org> |
| In reply to | #50034 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jul 5, 2013 at 9:10 PM, Νίκος Gr33k <nikos@superhost.gr> wrote: > Στις 6/7/2013 3:56 πμ, ο/η Joel Goldstick έγραψε: > >> >> 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. > > Β Phones and tablets find location from triangulating cell > >> towers.Β I don't think that laptops have that capability, and desktops >> probably even less likely. >> > > What do you mean by that? > > > What is the purpose that you wish to serve.Β 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<http://mail.python.org/mailman/listinfo/python-list> > -- Joel Goldstick http://joelgoldstick.com
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2013-07-05 22:52 -0400 |
| Message-ID | <mailman.4322.1373079131.3114.python-list@python.org> |
| In reply to | #50034 |
On Sat, 06 Jul 2013 04:10:24 +0300, ????? Gr33k <nikos@superhost.gr>
declaimed the following:
>
>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?
>
In any decent system, the web server runs as a particular user, and
only has access to the web content and scripts. And those scripts run as
the web server process (at most -- it may be that they run at an even more
restricted mode).
So NO, they do NOT have access to stuff under /root; for ancient
CGI-BIN style, they may be restricted to only the files in the CGI-BIN
directory.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Νίκος Gr33k <nikos@superhost.gr> |
|---|---|
| Date | 2013-07-06 10:10 +0300 |
| Message-ID | <kr8ft0$g65$1@news.grnet.gr> |
| In reply to | #50039 |
Στις 6/7/2013 5:52 πμ, ο/η Dennis Lee Bieber έγραψε: > On Sat, 06 Jul 2013 04:10:24 +0300, ????? Gr33k <nikos@superhost.gr> > declaimed the following: > >> >> 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? >> > In any decent system, the web server runs as a particular user, and > only has access to the web content and scripts. And those scripts run as > the web server process (at most -- it may be that they run at an even more > restricted mode). > > So NO, they do NOT have access to stuff under /root; for ancient > CGI-BIN style, they may be restricted to only the files in the CGI-BIN > directory. > Thats why i was getting permission denied vene when i had +x when i moved the geo.dat file to /home/nikos/geo.dat then the cgi python script was able to opened it. It was some guy form hostgator.com that had told me that a python script has the same level of access to anything on the filesystem as its coressponding user running it, implying that if i run it under user 'root' the python script could access anything. Are you sure that python scripts run under Apache user or Nobody user in my case and not as user 'nikos' ? Is there some way to test that? -- What is now proved was at first only imagined!
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2013-07-06 10:43 -0400 |
| Message-ID | <mailman.4338.1373121805.3114.python-list@python.org> |
| In reply to | #50048 |
On Sat, 06 Jul 2013 10:10:22 +0300, ????? Gr33k <nikos@superhost.gr>
declaimed the following:
>It was some guy form hostgator.com that had told me that a python script
>has the same level of access to anything on the filesystem as its
>coressponding user running it, implying that if i run it under user
>'root' the python script could access anything.
>
Yes, IF YOU RUN IT UNDER "root"... The ownership of the script file
doesn't control the privileges it runs under as long as the file itself is
read-access to other "users".
>Are you sure that python scripts run under Apache user or Nobody user in
>my case and not as user 'nikos' ?
>
That is the /normal/ way a web-server (or any server) should be
configured -- explicitly to prevent operations from leaking into the rest
of the system.
>Is there some way to test that?
>
There are a whole bunch of methods in the os module (which I can't
demonstrate as 95% of them are UNIX type OS only, and I'm running under
Win7). All sorts of things for retrieving group and user IDs. Only thing I
can access on Win7 is the least reliable items... (username is an
environment variable, and as such could have been changed from the real
user by something in the startup)
>>> import os
>>> os.environ["username"]
'Wulfraed'
>>> os.getcwd()
'C:\\Users\\Wulfraed'
>>>
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Νίκος Gr33k <nikos@superhost.gr> |
|---|---|
| Date | 2013-07-06 23:12 +0300 |
| Message-ID | <kr9tmk$qdu$1@news.grnet.gr> |
| In reply to | #50066 |
Στις 6/7/2013 5:43 μμ, ο/η Dennis Lee Bieber έγραψε: >> It was some guy form hostgator.com that had told me that a python script >> has the same level of access to anything on the filesystem as its >> coressponding user running it, implying that if i run it under user >> 'root' the python script could access anything. > Yes, IF YOU RUN IT UNDER "root"... The ownership of the script file > doesn't control the privileges it runs under as long as the file itself is > read-access to other "users". I though that the ownership of the script file controlled the privileges it runs under..... Who controlls the script's privileges then? The process that calls the script file, i.e. Apache? > as the file itself is > read-access to other "users". What do you mean by that? -- What is now proved was at first only imagined!
[toc] | [prev] | [next] | [standalone]
| From | Tim Chase <python.list@tim.thechases.com> |
|---|---|
| Date | 2013-07-06 15:33 -0500 |
| Message-ID | <mailman.4348.1373142725.3114.python-list@python.org> |
| In reply to | #50082 |
On 2013-07-06 23:12, Νίκος Gr33k wrote: > I though that the ownership of the script file controlled the > privileges it runs under..... Only if the script is SUID. In some environments, scripts can't be run SUID, only binaries. > Who controlls the script's privileges then? > The process that calls the script file, i.e. Apache? Yes. -tkc
[toc] | [prev] | [next] | [standalone]
| From | Νίκος Gr33k <nikos@superhost.gr> |
|---|---|
| Date | 2013-07-06 23:49 +0300 |
| Message-ID | <kr9vtc$tvf$1@news.grnet.gr> |
| In reply to | #50087 |
Στις 6/7/2013 11:33 μμ, ο/η Tim Chase έγραψε: >> Who controlls the script's privileges then? >> The process that calls the script file, i.e. Apache? > Yes. When we run the python interpreter to run a python script like python metrites.py then out script will inherit the kind of access the python interpreter has which in turn will inherit the kind of access the user that is run under upon has? -- What is now proved was at first only imagined!
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2013-07-06 18:36 -0400 |
| Message-ID | <mailman.4349.1373150202.3114.python-list@python.org> |
| In reply to | #50082 |
On Sat, 06 Jul 2013 23:12:02 +0300, ????? Gr33k <nikos@superhost.gr>
declaimed the following:
>I though that the ownership of the script file controlled the privileges
>it runs under.....
>
The owner can control /who/ runs the script -- via Group and Other
settings... But the access privileges to the rest of the system are
controlled by the process that runs the script -- in this case, Apache is
probably spawning a process (since you appear to be using classical CGI
invocation rather than a framework) that runs Python for each invocation.
The privileges, thereby, are those of Apache (at best -- I don't know
UNIX systems well enough to know if Apache is capable of putting even more
restrictions on subprocesses).
Depending on how the scripts are put into Apache's CGI system, Apache
may even be the owner of the script file.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Support by Νίκος <nikos@superhost.gr> |
|---|---|
| Date | 2013-07-05 22:59 +0300 |
| Message-ID | <mailman.4311.1373054360.3114.python-list@python.org> |
| In reply to | #50009 |
[Multipart message — attachments visible in raw view] — view raw
Στις 5/7/2013 10:58 μμ, ο/η Tim Chase έγραψε: > On 2013-07-05 22:08, Νίκος 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? > Yep. You can get an 11MB database (17MB uncompressed) > > http://dev.maxmind.com/geoip/legacy/downloadable/ > > which you can use to either populate an existing database with > the .CSV data there, or use the binary data blob in concert with the > Python API > > https://github.com/maxmind/geoip-api-python # Python + C > http://pypi.python.org/pypi/pygeoip/ # pure Python > > Just be sure to adhere to the licensing terms. > > -tkc > > > > > Thank you ill take a look on http://pypi.python.org/pypi/pygeoip/ # pure Python i hope it will be easy! -- Webhost <http://superhost.gr>
[toc] | [prev] | [next] | [standalone]
| From | Tim Roberts <timr@probo.com> |
|---|---|
| Date | 2013-07-05 13:44 -0700 |
| Message-ID | <ksbet89js4m2tq75tvrrltj808h19e3rb9@4ax.com> |
| In reply to | #50009 |
????? Gr33k <nikos@superhost.gr> 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. -- Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc.
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <davea@davea.name> |
|---|---|
| Date | 2013-07-05 17:18 -0400 |
| Message-ID | <mailman.4314.1373059100.3114.python-list@python.org> |
| In reply to | #50019 |
On 07/05/2013 04:44 PM, Tim Roberts wrote: > ????? Gr33k <nikos@superhost.gr> 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
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-07-06 11:06 +1000 |
| Message-ID | <mailman.4372.1373275356.3114.python-list@python.org> |
| In reply to | #50019 |
On Sat, Jul 6, 2013 at 7:18 AM, Dave Angel <davea@davea.name> wrote: > On 07/05/2013 04:44 PM, Tim Roberts wrote: >> >> ????? Gr33k <nikos@superhost.gr> 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. That said, though, geolocation is usually accurate enough to report which country you're in. For basic statistical analysis, that's generally sufficient. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Tim Chase <python.list@tim.thechases.com> |
|---|---|
| Date | 2013-07-05 17:21 -0500 |
| Message-ID | <mailman.4315.1373062766.3114.python-list@python.org> |
| In reply to | #50009 |
On 2013-07-05 22:59, Support by Νίκος wrote: > Στις 5/7/2013 10:58 μμ, ο/η Tim Chase έγραψε: > > On 2013-07-05 22:08, Νίκος 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? > > Yep. You can get an 11MB database (17MB uncompressed) > > > > http://dev.maxmind.com/geoip/legacy/downloadable/ > > > Thank you ill take a look Alternatively, you[1] can use JavaScript in your code and have it submit AJAX requests. This interacts with the browser, asking it where (geographically) it thinks it is. This interacts with a GPS some browsers (particularly mobile), while on others, it trusts the user to report where they are. Note that at any time, the user can decline to answer or blatantly lie[2]. -tkc [1] generic "you"...this requires a fair bit of coding skill and the ability to read/understand documentation that I can't say I've seen demonstrated in certain recent threads. [2] https://addons.mozilla.org/en-us/firefox/addon/geolocater/
[toc] | [prev] | [next] | [standalone]
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Date | 2013-07-05 22:24 +0000 |
| Message-ID | <kr7h28$na9$1@reader2.panix.com> |
| In reply to | #50009 |
On 2013-07-05, ?????????? Gr33k <nikos@superhost.gr> 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?
No.
> Perhaps by utilizing his originated ip address?
There is a very poor correlation between IP address and geographical
location. I know that users of the ISPs in hometown are consistently
mis-identified as being from towns 1500km away.
--
Grant Edwards grant.b.edwards Yow! If elected, Zippy
at pledges to each and every
gmail.com American a 55-year-old
houseboy ...
[toc] | [prev] | [next] | [standalone]
| From | Tony the Tiger <tony@tiger.invalid> |
|---|---|
| Date | 2013-07-06 13:23 -0500 |
| Subject | [OT] Re: Geo Location extracted from visitors ip address |
| Message-ID | <atmdnQ7ms7sP_UXMnZ2dnUVZ8tednZ2d@giganews.com> |
| In reply to | #50009 |
On Fri, 05 Jul 2013 22:08:33 +0300, Νίκος Gr33k wrote:
> Geo location
I just hope you're _not_ going to use that info for setting the site
language for your visitors. There is nothing more annoying/useless/
retarded than doing that. Based on IP you can absolutely _not_ say which
languages a user understands!
There are people living in other countries, working there, having the IP
of that country, yet they don't understand a single word of the language
spoken. Visiting an Internet café in China, you get their IP. Do you
understand written Chinese?
Google, IMDb (film titles), Itty-bitty-soft, and, I'm sure, several
others do exactly that. And they make it increasingly difficult to select
the language _you_ want. On IMDb, for instance, I don't think you can
change it, other than by using a proxy.
Plain retarded strategy.
The _correct_ way of doing it, is to use the language the _browser_ is
set to, and if that can't be determined, leave it up to the user to set
the language on the site. Simple solution, and everybody's happy, instead
of forcing me to read language X where I don't want to.
Yup! I'm an opinionated SOB.
/Grrr
--
___ ___
(\_--_/) | _ ._ _|_|_ _ |o _ _ ._
( 9 9 ) |(_)| |\/ |_| |(/_ ||(_|(/_|
stripes are forever - as overripe ferrets
[toc] | [prev] | [next] | [standalone]
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Date | 2013-07-05 15:23 -0400 |
| Message-ID | <mailman.4369.1373275356.3114.python-list@python.org> |
| In reply to | #50009 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jul 5, 2013 at 3:08 PM, Νίκος Gr33k <nikos@superhost.gr> 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? > > -- > What is now proved was at first only imagined! > -- > http://mail.python.org/**mailman/listinfo/python-list<http://mail.python.org/mailman/listinfo/python-list> > Google shows lots of results. This one might work for you: http://freegeoip.net/ -- Joel Goldstick http://joelgoldstick.com
[toc] | [prev] | [next] | [standalone]
| From | Jerry Hill <malaclypse2@gmail.com> |
|---|---|
| Date | 2013-07-05 15:28 -0400 |
| Message-ID | <mailman.4370.1373275356.3114.python-list@python.org> |
| In reply to | #50009 |
On Fri, Jul 5, 2013 at 3:08 PM, Νίκος Gr33k <nikos@superhost.gr> 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? No, you'd need to take the originating IP address and look it up in a geolocation database or submit it to a geolocation service and get the response back from them. It's not stored in any environment variables. -- Jerry
[toc] | [prev] | [next] | [standalone]
| From | Support by Νίκος <nikos@superhost.gr> |
|---|---|
| Date | 2013-07-05 22:43 +0300 |
| Message-ID | <mailman.4371.1373275356.3114.python-list@python.org> |
| In reply to | #50009 |
[Multipart message — attachments visible in raw view] — view raw
Στις 5/7/2013 10:28 μμ, ο/η Jerry Hill έγραψε: > On Fri, Jul 5, 2013 at 3:08 PM, Νίκος Gr33k <nikos@superhost.gr> 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? > No, you'd need to take the originating IP address and look it up in a > geolocation database or submit it to a geolocation service and get the > response back from them. It's not stored in any environment > variables. I see but i dont know how to do this Geo location lookups. Can you give me more specific details please? -- Webhost <http://superhost.gr>
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.python
csiph-web