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; }