On Sat, 29 Jan 2005 11:58:45 -0000, "Mettá"
<me**********@this-metta.org.uk> wrote:
Hi
I am trying to set page content to reflect where the user may come from.
Is there a fairly simple way to tell where web page requests are coming
from? (Site is on a Win2003 server)
i.e. something like (I know it not real)
<%If Request.ServerVariable(".HTTP_USER_ COUNTRY")="UK" Then %> ...
Thanks
M
You can determine country of origin by IP, but not 100% accurately.
There are free and paid for databases out there for this, the paid for
ones are more accuarate and updated more frequently.
Basically they contain IP address ranges and the country that those
ranges are assigned to and you simply do a lookup on the IP address.
At the best though they still can't promise 100% coverage.
For example big ISPs like AOL though can report all their IPs as being
USA even though it may be a UK AOL user.
I have a site that trys to do a detection to determine what currency
to display, but it also offers the user the choice to change, as it
can't be 100% correct then don't force the user to use your site in a
particular way based upon the detection.
Have a search on google for "free geographic IP csv" or some such.
--
Iain Norman |
http://www.eliteforum.org