GeoIPでWEBへの国別アクセス制御 Apache編 寄稿しました。
1 |
# yum install httpd httpd-devel mod_geoip GeoIP GeoIP-devel GeoIP-data zlib-devel |
1 2 |
# firewall-cmd --add-service=http --zone=public # firewall-cmd --reload |
1 |
# systemctl start httpd |
1 2 3 4 |
# cd /usr/share/GeoIP/ # mv GeoIP.dat GeoIP.dat_org # wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz # gunzip GeoIP.dat.gz |
&nbs …