views:

404

answers:

1

I need to create a landing page that will automatically redirect a visitor to the correct country page of a website by working out their location from their IP address.

This is an EPiServer 4 site. How would you go about doing this and does EPiServer have this functionality built in?

+4  A: 

You'll need to use a Geolocation Service provider, of which there are many.

However, wouldn't it be better to let the user choose their location, lest they are visiting through a proxy, or temporarily on vacation or something?

Winston Smith
I'm using data MaxMind (5th on your list). They have a free database and API code with examples.We're going to have a dropdown list of countries on all pages so people can get to the right country if they are on holiday or using a proxy. But out of interest, what's a proxy and why would someone be using one?
Jonathan Sewell
A proxy is a another computer that you connect to the internet via. As far as the rest of the internet sees, your IP is that of the proxy. So if your proxy is located in a different country, the geolocation service will incorrectly identify the location of the user. Proxies are used for a number of reasons such as anonymous surfing or bypassing regional restrictions eg from countries like UAE, or China, which have heavily filtered web access.
Winston Smith