| Coding Forum Problems with your code? Let's hear about it. |
08-01-2005, 10:44 AM
|
#1 (permalink)
|
|
Contributing Member
Join Date: 02-22-04
Location: California
Posts: 986
|
redirecting as per users geo-location
Hi. i want to redirect visitors to another website IF they are looking at mine from EUROPE. how can i do this? what script can i use which will automatically redirect people to a different website if their location is europe?
thanks
|
|
|
08-01-2005, 05:58 PM
|
#3 (permalink)
|
|
Contributing Member
Join Date: 02-22-04
Location: California
Posts: 986
|
Quote:
|
Originally Posted by FGTH
|
I read the page but still dont know how i can impliment it on my website???
|
|
|
08-01-2005, 07:11 PM
|
#4 (permalink)
|
|
v7n Mentor
Join Date: 05-06-04
Location: London, UK
Posts: 1,452
Latest Blog: None
|
You could just put a map of the world on your home page and get people to choose where they are from :p
|
|
|
08-02-2005, 04:49 AM
|
#5 (permalink)
|
|
v7n Mentor
Join Date: 08-26-04
Location: Rio de Janeiro
Posts: 1,289
Latest Blog: None
|
|
|
|
08-02-2005, 05:01 AM
|
#6 (permalink)
|
|
Contributing Member
Join Date: 02-22-04
Location: California
Posts: 986
|
Quote:
|
Originally Posted by jg_v7n
|
thanks, i check it out but it is not a free service  is there a asp script which i can insert which can check the ip address and redirect the visitors?
|
|
|
08-02-2005, 05:18 AM
|
#7 (permalink)
|
|
v7n Mentor
Join Date: 08-26-04
Location: Rio de Janeiro
Posts: 1,289
Latest Blog: None
|
The $49 IP - Country package comes with a sample ASP script for doing the lookup. Other than that you could write one yourself. You still need the database though.
|
|
|
08-02-2005, 05:42 AM
|
#8 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Quote:
|
Originally Posted by funguru
thanks, i check it out but it is not a free service 
|
It's only fifty bucks. You'd pay someone more than that to write a script for you. Plus it has the database.
|
|
|
08-02-2005, 08:10 AM
|
#9 (permalink)
|
|
Contributing Member
Join Date: 07-30-05
Posts: 282
Latest Blog: None
|
Ok, guys and gals.... A little help here please.
What is the OUTPUT from the following???
<html>
<head>
</head>
<body>
<script>
d = new Date()
document.write (d)
</script>
</body>
</html>
Here in the states it is: "Tue Aug 02 2005 11:01:57 GMT-0400 (Eastern Daylight Time)"
Here's what I'm thinking..... (I'll try not to hurt myself) Redirect on the difference from GMT. So a substring to get the +/- difference???? Lil javascript guys! (Save the $50 go to dinner after the project is done!!!)
Now, you are betting on the clock is set within a REASONABLE difference from TRUE LOCAL time.
Comments???????
|
|
|
08-02-2005, 08:19 AM
|
#10 (permalink)
|
|
v7n Mentor
Join Date: 08-26-04
Location: Rio de Janeiro
Posts: 1,289
Latest Blog: None
|
It's a bit of a bodge - lots of countries are in the same timezone, so you couldn't distinguish North from South America, or Africa from Europe. I guess though if you just wanted to distinguish Europe from America it would work just fine.
|
|
|
08-02-2005, 08:33 AM
|
#11 (permalink)
|
|
Contributing Member
Join Date: 07-30-05
Posts: 282
Latest Blog: None
|
Quote:
|
Originally Posted by funguru
... IF they are looking at mine from EUROPE. ...
|
Per the original poster, he just wanted a redirect if from Europe.
|
|
|
08-02-2005, 08:57 AM
|
#12 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Quote:
|
Originally Posted by Radnor
Per the original poster, he just wanted a redirect if from Europe.
|
Yea, but won't your way also redirect if the user is in Africa?
|
|
|
08-02-2005, 09:28 AM
|
#13 (permalink)
|
|
Contributing Member
Join Date: 07-30-05
Posts: 282
Latest Blog: None
|
Yes, you are correct.
Berlin, Nigeria, Belfast, and more .... are all GMT + 1 hour.
This will just give you time zones. The poster did not really say why. I thought it was for a server closest to the requestor.
Maybe the original poster can shed a little more light on the question or if time zones are ok.....
|
|
|
08-03-2005, 09:31 AM
|
#14 (permalink)
|
|
Contributing Member
Join Date: 03-06-04
Location: NY, CT, CA, AZ
Posts: 522
Latest Blog: None
|
Quote:
|
Originally Posted by Radnor
Maybe the original poster can shed a little more light on the question or if time zones are ok.....
|
Quote:
|
Originally Posted by funguru
i want to redirect visitors to another website IF they are looking at mine from EUROPE. how can i do this?
|
My initial response pretty much lead everyone in the direction of using the remote address (IP) to determine geography.
Another piece of data to identify a visitor's geography is REMOTE_HOST. This will tell you the ISP/network provider which can be used to determine the location.
You can use the program that was recommended earlier or Visual Route which is my preference http://www.visualroute.com/index.html
Last edited by FGTH : 08-03-2005 at 09:39 AM.
|
|
|
08-03-2005, 10:03 AM
|
#15 (permalink)
|
|
v7n Mentor
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,941
Latest Blog: None
|
Quote:
|
Originally Posted by Jazzee
It's only fifty bucks. You'd pay someone more than that to write a script for you. Plus it has the database.
|
I agree. It's a one year subscription for only $49.00. Why re-invent the wheel? The database is the most important piece. I don’t know what you charge per hour but you probably exceeded $49.00 of your time looking for a “free” solution.
You could just do what others do. Have a landing page that makes the visitor select their country. Save their selection in a cookie, so when they come back they will go to the correct page.
Something like this:
http://www.iomega.com/global/index.jsp
imaginemn
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:37 AM.
© Copyright 2008 V7 Inc
|