
geo re-direct
By: a guest on
Apr 25th, 2012 | syntax:
PHP | size: 0.31 KB | hits: 20 | expires: Never
<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>
<script language="JavaScript">
var country= geoip_country_code();
if(country == "US")
{
window.location = "http://google.com"
}
else if(country == "GB")
{
window.location = "http://google.co.uk"
}
</script>