Install Mod_Evasive on apache
In this tutorial i will describe how to install MOD_EVASIVE on a VPS or Dedicated Server, it offers protection against DDoS attacks on the server and is a apache module.
- Login to your server through SSH with valid root details.
- Run these commands:
# wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
# tar zxf mode_evasive-1.10.1.tar.gz
# cd mod_evasive
- Then run following command for apache:
# > /usr/sbin/apxs -cia mod_evasive20.c
- It will install the mod_evasive on the server.
- Now you would need to edit httpd.conf file, to do so follow instructions:
- Open the httpd.conf file in nano text editor
# nano /etc/httpd/conf/httpd.conf
- And place the following lines into it:
And you are done, this will install and activate Mod_Evasive on the server.
Feedback are welcome 🙂
Installing CSF to prevent DDos Attacks
In this post i will describe how to install CSF (Config Server Security and FireWall) on the linux based Operating system.
A short description of CSF :
CSF provides security improvements and protects your server from various attacks including DDOS. It provides better security as compared to others and the mostly hosting providers are using it to secure their server from hackers. I recommend you to install it on your server whether it is VPS of Dedicated box.
- Login to you server through terminal with root privileges.
- Type following commands:
# rm -fv csf.tgz
# wget http://www.configserver.com/free/csf.tgz
# tar -xzf csf.tgz
# cd csf
# sh install.sh
- it will take less than 5 minutes to be installed completely, afterward you must run the following command to ensure the required iptables modules are installed to function properly:
# perl /etc/csf/csftest.pl
- And the report will be shown with the suggestions.
- Now just navigate to the directory where you have installed CSF by executing following command:
# cd /etc/csf Read More