![]() |
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> thanks to you all for all ur useless reply's j/k. GFY.. not kidding. :1orglaugh |
Its better to use php and redirect them from there before your html page even loads. You can still do it for free, maxmind gives away the database for it and even tells you how to do it on their website.
|
This does? Count/convert the money in my wallet? :1orglaugh Code:
function geoplugin_city() { return '**';} The ** were omitted but the values were close |
Interesting. I'll take it.
|
Just add these to the root .htaccess file Code:
<Files 403.shtml> This not stopping the traffic to the server but the IPs will get a 403 - Forbidden 57 bytes? |
Quote:
|
Quote:
|
http://www.geoplugin.net/javascript.gp run your script in a browser its looks like a currency converter ... |
Quote:
but what it does is give the country code., and then i use switch(geoplugin_countryCode()){ case "MY" : document.location.href = "http://www.xxxtreme.com/blocked.html"; break; to check if the country code is MY , and then it redirects it to given url. thanks for your time. |
OK that is one way to do it ... |
Quote:
anyways i just checked server stats and memory usage are overheating.., i guess traffic coming to the index.php and then redirecting also causing issues...so i m gonna try 403 htaccess method. will c if server resource goes down. |
All times are GMT -7. The time now is 03:13 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc