Last active
January 3, 2016 16:29
-
-
Save opnchaudhary/8489431 to your computer and use it in GitHub Desktop.
Installing mod_evasive in fedora/centos to prevent DOS attacks yum install httpd-devel
wget 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/httpd/conf.d/mod_evavsive.conf | |
LoadModule evasive20_module /usr/lib64/httpd/modules/mod_evasive20.so | |
<IfModule mod_evasive20.c> | |
DOSHashTableSize 3097 | |
DOSPageCount 3 | |
DOSSiteCount 100 | |
DOSPageInterval 3 | |
DOSSiteInterval 5 | |
DOSBlockingPeriod 300 | |
DOSLogDir "/var/log/httpd/modevasive/" | |
DOSEmailNotify [email protected] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment