Using mod_evasive for dos attack prevention

A quick solution for blocking dos attacks can be mod_evasive Installing mod_evasive on an apache2 web server:

# mkdir -p /root/tmp
# cd /root/tmp
# wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
# tar zxvf mod_evasive_1.10.1.tar.gz
# cd mod_evasive
# apxs -cia mod_evasive20.c

then …

more…