You can probably come up with a fairly simple way to query netgeo. Although this isn't 100% reliable (and relies on an outside server), it might work.
http://www.caida.org/tools/utilities/netgeo/NGServer/index.xml I believe other people have written php interfaces to this, although you could probably figure out how to port it to CF without too much trouble. -- jon ------------- jon roig senior manager, online production epilepsy foundation phone: 215.850.0710 site: http://www.epilepsyfoundation.org email: [EMAIL PROTECTED] -----Original Message----- From: Srimanta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 11, 2002 9:49 AM To: CF-Talk Subject: Re: Redirection based on IP address. Yup. Thanks. How do I reliably determine the country from the IP address realtime. I think that the tricky part. Is there a CF tag that will do that for me? Srimanta ----- Original Message ----- From: Scott Brady <[EMAIL PROTECTED]> To: CF-Talk <[EMAIL PROTECTED]> Sent: Tuesday, December 10, 2002 4:01 PM Subject: Re: Redirection based on IP address. > Assuming you can reliably determine which IP addresses go with which country, it should be fairly easy using CGI.remote_addr (which gives you their IP address). > > Of course, what if an Australian user is on vacation in the US and wants to see the Australian page? > > I'd suggest still giving the users the option to go to other country pages (so the aforementioned Aussie will initially get the US page but can switch go the Australian pages [and keep the preference with a cookie/session variable]). > > Scott > -------------------------------- > Scott Brady > http://www.scottbrady.net/ > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm