Tutorial Tag


  1. How To Redirect or block traffic based on country geographical location using Apache mod_geoip

    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: UBUNTU/DEBIAN # apt-get install libapache2-mod-geoip CENTOS/REDHAT/FEDORA ( epel enabled only ) # yum install mod_geoip.x86_64 Confirm that geoip and rewrite modules are enabled: # apache2ctl -M | grep -E "geoip|rewrite" geoip_module (shared) rewrite_module (shared) If the above command does not produce any output or if only a single mod is listed the enable the missing module with...