<IfModule mod_geoip.c>
GeoIPEnable On
GeoIPDBFile /var/lib/Geoip/GeoLiteCity.dat
<Location />
SetEnvIf GEOIP_COUNTRY_CODE KR AllowCountry
Deny from all
Allow from env=AllowCountry
#Allow from 10.1.2.3
</Location>
</IfModule>
또는 아이피 테이블 이용
iptables -A INPUT -d 218.145.31.50/24 -m geoip ! –src-cc KR -j DROP