472,121 Members | 1,484 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

country of visitor

Greetings,

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

Thanks a lot.
Jul 19 '05 #1
1 1755
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.

Similar topics

11 posts views Thread by abracad | last post: by
11 posts views Thread by jessy | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.