View Single Post
Old 12-16-2012, 12:55 AM  
JamesM
Confirmed User
 
Industry Role:
Join Date: Nov 2012
Posts: 732
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.,
__________________


Ex GF Films | Grab Dollars
Up To 80% Rev-Share | 255 Day Cookie | Legal Content | Variety of Promo Tools | CCBill Program | GF Niche
james[at]grabdollars[dot]com | ICQ::611-99-zero-zero-20

Last edited by JamesM; 12-16-2012 at 01:05 AM..
JamesM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote