PDA

View Full Version : Country-Based redirect


bogdan5844
07-09-2009, 12:16 PM
I hope this is possible using JavaScript...

I have a company presentation website,and I want to show the user the site version in Romanian if he comes from Romania,and a versionin English if he comes from any other country.Can I do this using JavaScript solely,or do I need some server-based script?If so,is there some free service that I can use?:rolleyes:

Thanks in advance

¥åßßå
07-09-2009, 12:19 PM
Chances are you can do it with js .... if you do then make your default en-uk cos I have js disabled ;)

It's *much* better to do this server side

¥

bogdan5844
07-09-2009, 12:35 PM
I found GeoDirection : geobytes.com/GeoDirection.html and I think it suits me 80% well...I still want to know of any free service or at least a PHP Tutorial of sorts :rolleyes: waiting for more responses

¥åßßå
07-09-2009, 12:42 PM
google : geoip (http://www.google.co.uk/search?q=geoip)

First result is what most people use, there's some sample code somewhere on the site

¥