In this tutorial you will learn how to block or redirect web traffic based on the visitor's country (geographical location) using Apache's geoip mod.
1. Apache mod_geoip installation
Assuming that you already have a Apache webserver installed and running we will start by the installing mod_geoip:
# apt-get install libapache2-mod-geoip
CENTOS/REDHAT/FEDORA ( epel enabled only )
# yum install mod_geoip.x...
By lee, June 24, 2015