mod_evasive is an evasive maneuvers module for Apache that provides evasive action in the event of an HTTP DoS attack or brute force attack. It is also designed to be a detection and network management tool, and can be easily configured to talk to ipchains, firewalls, routers, and more.
Go to the below path.
cd /usr/local/src
Download the file using the below link:
wget wget http://www.zdziarski.com/blog/wp-content/uploads/2010/02/mod_evasive_1.10.1.tar.gz
Untar the file.
tar xzf mod_evasive_1.10.1.tar.gz
Go to the folder.
cd mod_evasive
Run the below command for the installation.
apxs -cia mod_evasive20.c
You’ll then need to add the mod_evasive configuration to your Apache configuration file. First, find this section:
File:/etc/httpd/conf/httpd.conf (CentOS / Fedora)
LoadModule evasive20_module /usr/lib/httpd/modules/mod_evasive20.so
Below those sections, add the mod_evasive configuration:
File excerpt:mod_evasive configuration
<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 60
DOSEmailNotify someone@somewhere.com
</IfModule>
————————————————————
File:/etc/apache2/apache2.conf (Debian / Ubuntu)
# Include module configuration:
Include mods-enabled/*.load
Include mods-enabled/*.conf
————————————————————-
You’ll then need to restart Apache for your changes to take effect:
Debian / Ubuntu:
/etc/init.d/apache2 restart
CentOS / Fedora:
/etc/init.d/httpd restart
About Bizvibe Bizvibe is a B2B online platform that helps in connecting buyers and sellers…
File server investment is the smart investment anyone can make for their business. It has…
Because of the many advantages of the cloud, people are moving more and more towards…
Cloud Adoption Accelerates IT Modernization. More and more online businesses are increasing more and more…
Almost more than half of the total world’s population were using the internet by any…
Plesk is an IT service provider company which was founded in 2000 by Dimitri. The…
This website uses cookies.
Leave a Comment