View Single Post
Old 12-20-2013, 02:31 PM  
Firestarter30
Confirmed User
 
Industry Role:
Join Date: Sep 2010
Location: The Land Of Gods
Posts: 167
Are you on a vps or shared hosting account?
On a vps with nginx (geoip module included) is pretty easy to ban entire countries as follows
Code:
http {
.....
map $geoip_city_country_code $allowed_country {
default yes;
CN no;
JP no;
}
server {
if ($allowed_country = no) {
return 444;
....
....
}
}

Last edited by Firestarter30; 12-20-2013 at 02:33 PM..
Firestarter30 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook