here you go
Code:
<html>
<head>
<script src="http://j.maxmind.com/app/geoip.js" type="text/javascript"></script>
<script type="text/javascript">
switch(geoip_country_code()){
case "AT" :
document.location.href = "http://austriatraffic.com";
break;
case "CH" :
document.location.href = "http://switzerlandtraffic.com"
break;
case "DE" :
document.location.href = "http://germantraffic.com"
break;
case "IN" :
document.location.href = "http://indiatraffic.com"
break;
default :
document.location.href = "http://othertraffic.com.com"
break;
}
</script>
</head>
</html>
in above code, you just have add specific country codes from which traffic and the target url
like this
Quote:
case "IN" :
document.location.href = "http://indiatraffic.com"
break;
|
hope this helps.,