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.

Was this answer helpful?

 Print this Article

Also Read

Install mod_pagespeed module cPanel

A custom module for CPanel WHM using CPanel Easy Framework - allows easy installation of...

Installing mod_cloudflare on cPanel

You can install mod_cloudflare on your cPanel server by running the following command:sudo perl...

Install Attracta cPanel & WHM Plugin

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

Convert Database ENGINE from InnoDB to MyISAM

Gunakan scrip PHP di bawah ini untuk mengubah database ENGINE dari InnoDB ke MyISAM  ...

Mysqldump dengan PHP

Berikut ini script untuk membuat backup database dengan mysqldump pada script php  ...

Powered by WHMCompleteSolution