How to Install mod_geoIP for cPanel

Please do the following steps:

# cd /var/cpanel/easy/apache/custom_opt_mods
# wget
# 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.

  • Email, SSL
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Clear EXIM Logs

Jika mendapatkan log EXIM yang cukup besar bisa menggunakan perintah berikut untuk...

How to Change Your FTP Port

Lately FTP has been a problem for a lot of hosting providers. Especially since the recent influx...

Optimize MySQL

You could try running the following script to see the recommendations it provides: Code:...

How to create backup Account via SSH?

Step 1: Log-in to the SSH as Root user. Step 2: Enter the following command string on the...

Install Attracta cPanel & WHM Plugin

  Instal cPanel Plugin Attracta SEO pada setiap server, tempatkan Logo Attracta di situs Anda,...