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