View Single Post
Old 12-16-2012, 10:42 AM  
Oracle Porn
Affiliate
 
Oracle Porn's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Icq: 94-399-723
Posts: 24,432
Quote:
Originally Posted by JamesM View Post
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



hope this helps.,
is it possible to use my own maxmind geo ip (on my server) rather then use theirs?
__________________


Oracle Porn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote