•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Backup
    • Content Delivery Network
    • Colocation Hosting
    • Dedicated Hosting
    • DDoS Mitigation
    • IP Transit
    • Private Cloud
    • Wavelength
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • Dedicated Servers
    • Colocation
    • Private Cloud
    • DDos Protection
    • IP Transit
    • CDN
    • Backup
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

Apache DDoS Detection

  • Home
  • Client
  • Qa Forum
  • Apache DDoS Detection

Posted By: Dean | 1 Replies | Last Reply On: Sep 26, 2019 12:43:19

Is Apache server able to detect ddos attacks and stop them? 

Psychz - Omkar

Votes: 0Posted On: Sep 26, 2019 12:43:19
 

Apache has a module that helps to prevent a DDoS attack. However, it's probably not installed by default. The module named "mod_evasive" takes protective action at the time of a DDoS attack or a BruteForce attack and protect Apache from these types of attacks. You can configure it to send you reports by email. To configure mod_evasive on centos 7 servers, please follow the below steps.

Note: If you need help on how to keep Apache webserver running, please follow the steps on How To Install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 7 https://www.psychz.net/client/kb/en/installation-of-lamp-stack-on-centos-7.html

Step 1. Install EPEL yum repository packages

You will need EPEL (Extra Packages for Enterprise Linux) which is an open source and free community based repository project from Fedora team which provides 100% high quality add-on software packages for Linux distribution including RHEL (Red Hat Enterprise Linux), CentOS and Scientific Linux. Execute the below commands in the terminal.

# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Followed by

# rpm -ivh epel-release-latest-7.noarch.rpm

Step 2. Install mod_evasive module using below command

# yum install mod_evasive -y

Step 3. Verify installation by checking the configuration file

# cat /etc/httpd/conf.d/mod_evasive.conf

You need to verify that the following line appears on top of the config file

LoadModule evasive20_module modules/mod_evasive24.so

Step 4. Restart the httpd service

# systemctl start httpd

 

Your server is now protected against DDoS and other malicious attacks.

The module is by default already configured. But if you want to alter the mod_evasive configuration, open the configuration file mentioned below using any editor and make sure httpd service is restarted if the config file is altered

# vim  /etc/httpd/conf.d/mod_evasive.conf

We'll learn how to enable email alert.

Go to line number 48 and uncomment the below line and enter your email id in the required field. So, The events will be automatically alerted via emails.

#DOSEmailNotify  example@yourdomain.com

Was this reply helpful?

Related topics

  • What is DDoS and How to Protect Against a DDoS Attack
  • How to Install SSL Certificate On Centos 7
  • How to restart apache server in cpanel?
  • Managing systemd services and units using systemctl commands
  • Layer 7 DDoS
  • Node.js Web Server
  • Best Web Server for Node.js
  • How to temporarily/permanently enable DDoS IP diversion for a Single IP Address?
  • EasyApache 4: better than ever?
  • DDoS Mitigation
  • 100 Gbps DDoS Protection
  • Top Antivirus programs for Linux
  • Tools That Make Kubernetes Easier
  • Best Open Source Monitoring Tools For Server
  • DDoS Extortion: The Latest Nefarious Twist on Cyber Crime
Hosting Services
  • Dedicated Hosting
  • Colocation Hosting
  • Backup
  • IP Transit
  • DDoS Mitigation
Support
  • Portal Login
  • Knowledgebase
  • Community
Company
  • About Us
  • Contact Us
  • Network
  • Data Centers
  • Looking Glass
  • Affiliates
  • Reseller
  • Blog
Policies
  • Privacy Policy
  • Acceptable Usage Policy
  • Terms and Conditions
  • Service Level Agreement
Company
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801
Subscribe to Our Mailing List
* indicates required
Copyright © 2023 Psychz Networks, A Profuse Solutions Inc Company