469,898 Members | 1,815 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

country of visitor

Greetings,

How i can know the country of the visitor of the web?

Thanks a lot.
Jul 19 '05 #1
1 1696
Best you can probably do is determine language settings

Response.Write Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")

People seem to expect a reverse DNS lookup to determine this, but this is
expensive performance-wise, requires some kind of database lookup, and is
unreliable (because a user can be in Canada, for example, and be connecting
to a VPN at their office in the U.S.).

BrowserHawk handles this, but I'm not sure of the details.
http://www.cyscape.com/

Depending on what you are doing (e.g. tailoring language or currency or date
format), I think you should ask them. Just because you determined that I'm
currently surfing from the U.K. doesn't mean I'll know that you
"conveniently" swapped day for month in my short date display.

"josepe" <jo***@elladrillorojo.com> wrote in message
news:uy**************@TK2MSFTNGP10.phx.gbl...
Greetings,

How i can know the country of the visitor of the web?

Thanks a lot.

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.