cPanel Tutorials | Security Guides | News Feeds | Search
Navigation
Home
Guides
Password Generator
Files
News Feeds
Hosting News
Contact Us
Documentation
Site Search
 
Latest Guides
Largest number of established connections
Kill all processes matching certain strings.
Install FFmpeg-PHP
Install FFmpeg
Configure Squid
Install Squid
Password Security
Install Teamspeak
Disable SELinux
Install RoundCube on cPanel

Viewing Guide 

Install mod_evasive
Written by: HostGeekZ



This guide is wraped for easy viewing, to see the non wraped version Click Here



Installing mod_evasive (formally known as mod_dosevasive)

Login too your server and execute

cd /usr/local/src
wget http://www.nuclearelephant.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
tar -zxvf mod_evasive_1.10.1.tar.gz
cd mod_evasive


For apache 2.0.x

/usr/sbin/apxs -cia mod_evasive20.c



Then add add this too httpd.conf

<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 6
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 600
</IfModule>





For apache 1.3.x

/usr/local/apache/bin/apxs -cia mod_evasive.c



Then add this too httpd.conf

<IfModule mod_evasive.c>
DOSHashTableSize 3097
DOSPageCount 6
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 600
</IfModule>




Now just restart apache and the installation is complete.

/etc/init.d/httpd restart

User Comments 
Cody
2007-07-11
##update
wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
     
Name:
Email: If you provide your email address you will receive updates for this guide to it.
Comment:
Verification We require you to add the following 2 values together for anti-spam purposes.
10 + 36
   

©Copyright HostGeekZ 2004-2007. All Rights Reserved.
Resources