Geo Location extracted from visitors ip address

Jerry Hill malaclypse2 at gmail.com
Fri Jul 5 15:28:15 EDT 2013


On Fri, Jul 5, 2013 at 3:08 PM, Νίκος Gr33k <nikos at 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



More information about the Python-list mailing list