Install GeoIP Apache Module in CentOS

To install GeoIP Apache module on CentOS 7, run

Now you need to configure Apache VirtualHost.

To block traffic, add following to your VirtualHost entry

In this example, traffic from CN, RU and A1 (stands for proxy IP) get redirected to specified URL.

geoip

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *