Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Redirect based on Visitors Country

Posted 28 May 2002 20:23:10
1
has voted
28 May 2002 20:23:10 Mitchel Tendler posted:
Is there a way to detect were a visitor is from and then redirect them to a
specific page designed for there country?

I think it has to do with: REMOTE_HOST or REMOTE-ADDR?

Thanks!

Mitch

When in doubt...reboot!

Replies

Replied 29 May 2002 03:22:32
29 May 2002 03:22:32 Andrew Watson replied:
Hi,
You can get the users preffered language using...

HTTP_ACCEPT_LANGUAGE

This returns "en-gb" which is the language code for me in the uk so if you had a list of the codes and their relative countries you could make a reasonable assumption as to their whereabouts.

REMOTE_HOST or REMOTE-ADDR will only return thier IP address.

its not going to be exact but its all i can think of...

heres a list of the codes..

msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/language_codes.asp

Cheers
Leed

:: Son, im Thirty.... ::
Replied 29 May 2002 16:01:13
29 May 2002 16:01:13 Mitchel Tendler replied:
Thanks Leed!

Mitch

When in doubt...reboot!
Replied 30 May 2002 23:04:12
30 May 2002 23:04:12 David Thomas replied:
There is also an extension available that can do this for you.

www.udzone.com/showDetail.asp?TypeId=3&NewsId=1034

good luck

"Nobody ever said this stuff was easy"
Replied 31 May 2002 18:15:38
31 May 2002 18:15:38 Mitchel Tendler replied:
Thanks Davie!

When in doubt...reboot!

Reply to this topic