How to Install mod_geoIP for cPanel

Please do the following steps:

# cd /var/cpanel/easy/apache/custom_opt_mods
# wget http://docs.cpanel.net/twiki/pub/EasyApache3/CustomMods/custom_opt_mod-mod_geoip.tar.gz
# tar -xvf custom_opt_mod-mod_geoip.tar.gz

run easy apache. That's all.

 

In mod_security create a new rule for China:

# mod_geo deny access by country
SecFilterSelective “ENV_GEOIP_COUNTRY_NAME” “China” “deny,log,status:403″

Note the env variable must start with ENV_ so mod_sec knows where to look for it.

Was this answer helpful?

 Print this Article

Also Read

Error shell_exec() has been disabled for security reasons

Warning: shell_exec() has been disabled for security reasons in...

EasyApache Bandwidth Module

The module used for limiting bandwidth usage differs depending on the branch of apache you are...

Install Clamav cPanel Command Line

Berikut perintah untuk install clamav tanpa harus login ke WHM...

Instalasi cPanel pada Server Centos

Langkah-langkah yang harus disiapkan. 1.Pastikan anda memiliki koneksi Internet yang stabil...

Install Plugin Cloudflare di cPanel

Description CloudFlare plugin for CPanel. Please note: The cPanel plugin is for Certified...