The best answer that I have for you is the geoip database located here. Get it, and do lookups against it.
http://ipinfodb.com/ip_database.php On Wed, Aug 18, 2010 at 3:09 PM, b vivek <[email protected]> wrote: > Well another of my naive questions .. please bear with me:- > I know that I would be able to find a visitor's ip address using :- > ip=request.environ.get("X_FORWARDED_FOR", request.environ["REMOTE_ADDR"]) > now based on the ip address how do I get to know the exact geo location of > the visitor and if someone is generous enough, it would be great if they > could let me know how do I show him a page based on his location(Kindly try > to put in as much detail as possible here.. who knows this mail just might > help some other newbie like me next time) > > Thanks > Vivek! > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<turbogears%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/turbogears?hl=en. > -- Michael J. Pedersen My IM IDs: Jabber/[email protected], ICQ/103345809, AIM/pedermj022171 Yahoo/pedermj2002, MSN/[email protected] -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

