1. Home
  2. vDDoS Proxy Protection
  3. Block IP/Country

Block IP/Country

vDDoS Block IP/Country

To Block IP/Country, you need edit blacklist-countrycode.conf file:

1. Example Block Country Tokelau & IP Address 10.9.8.7:

nano /vddos/conf.d/blacklist-countrycode.conf

geoip_country /usr/share/GeoIP/GeoIP.dat;
map $geoip_country_code $allowed_country {
	default yes;
	VN yes;
	TK no; # Remove this line if you are in the Tokelau
	
}
deny 10.9.8.7;

2. Example Block All the World & Allow Country Tokelau:

nano /vddos/conf.d/blacklist-countrycode.conf

geoip_country /usr/share/GeoIP/GeoIP.dat;
map $geoip_country_code $allowed_country {
	default no;
	TK yes;

}

Was this article helpful to you? Yes No