How to install mod_evasive on a cPanel servers

mkdir download

cd download


tar zxvf mod_evasive_1.10.1.tar.gz

cd mod_evasive

/usr/local/apache/bin/apxs -i -a -c mod_evasive20.c

/usr/local/cpanel/bin/apache_conf_distiller --update


LoadModule evasive20_module   modules/


Add these to Pre VirtualHost Include


<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount   2
DOSSiteCount  50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 60

Was this answer helpful? 0 Users Found This Useful (4 Votes)