We do support Round the Clock 24 x 7 x 365 (+91) 883 012 3924

How to install mod_evasive on cPanel server

How to install mod_evasive on cPanel server

mod_evasive is a module for Apache to provide evasive action from DoS HTTP activity or DDoS attack or brute force attack.
It works by inspecting incoming traffic to an apache web server using a dynamic hash table of IP addresses and URLs, then blocks traffic from IP addresses that exceed a predetermined threshold.

Follow below steps for installing mod_evasive on cPanel server

cd /usr/local/src
wget http://www.zdziarski.com/blog/wp-content/uploads/2010/02/mod_evasive_1.10.1.tar.gz
tar -xzf mod_evasive_1.10.1.tar.gz
cd mod_evasive
apxs -cia mod_evasive20.c
/usr/local/cpanel/bin/apache_conf_distiller –update

Add the following code into /usr/local/apache/conf/includes/post_virtualhost_2.conf file.
OR you can do it through WHM > Apache Configuration > Include Editor -> Post VirtualHost Include (choose version 2.2.x).

LoadModule evasive20_module modules / mod_evasive20.so

DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 3600

You can contact us at [email protected] if you require any further assistance.

Comments are closed.