View Single Post
Old 06-03-2011, 11:58 PM  
cooldude7
Confirmed User
 
cooldude7's Avatar
 
Industry Role:
Join Date: Nov 2009
Location: Heaven
Posts: 4,306
Redirect Your traffic from specific countries.

Okie, i was getting traffic from malaysia and site was using full resources of cpu so host told me to do something about it.,

so i used this

Code:
<script src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
<script type="text/javascript">
    switch(geoplugin_countryCode()){
        case "MY" :
            document.location.href = "http://www.xxxtreme.com/blocked.html";
            break;
    }
</script>


</head>
will c how it goes.

thanks to you all for all ur useless reply's j/k. GFY.. not kidding.
cooldude7 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote