Forum Moderators: phranque

Message Too Old, No Replies

How to redirect all non UK visitors

         

djmick200

10:23 am on Jul 25, 2006 (gmt 0)

10+ Year Member



Im sure it has been covered before though after several hours of searching and reading Im no further on :-(

website widgets.co.uk is ONLY for a UK market. Is there a simple way to redirect all non UK visitors to widgets.co.uk/somepage.html?

due to the nature of how the site is advertised it receives around 60% non UK traffic which I could make a little cash from if I could direct them elsewhere.

Any suggestions or help would be most welcome.

Thanks

encyclo

11:52 am on Jul 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This takes more than just Apache. You need two things: the first is a geo-location database to identify the origin of your visitors by IP address. The second thing you need is a list of the IP addresses of the major search engine bots (ie. a cloaking list) as the bots come from IP addresses outside the UK, but if you want the site to stay in the index you need to whitelist the bots.

Then you do a database lookup for each visit, check it's not a spider, and redirect if the range is outside the UK.

djmick200

1:00 pm on Jul 25, 2006 (gmt 0)

10+ Year Member



Thank you for your helpful answer. I will read up more on your recommendations.

Thanks again