How to install Apache’s mod_evasive to prevent DoS/ Brute-Force attacks on CentOS

mod_evasive-logomod_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. mod_evasive presently reports abuse via email and syslog facilities.

Before install mod_evasive on the box we need to install some dependacies applicaiton.

Enable EPEL repository as your OS flavour:

Update your system:

Install apache development libraries

Installing mod_evasive

After installation completed edit the http configuration file and add the below configuraiton to it.

Now we need to restart the apache to reflect the new changes.

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

One thought on “How to install Apache’s mod_evasive to prevent DoS/ Brute-Force attacks on CentOS

Leave a Reply