|
||||||||||
|
|
How to prevent DDos attacksApril 22, 2008 on 2:48 pm | In Apache, Cpanel, DDos | No CommentsHello everyone… >>>>>>>>>Install/Configure APF firewall Install/Configure APF firewall =========================== Step 2: Installation sh ./install.sh Install/Configure mod_evasive =========================== ====================== Compile in the mod_evasive apache module using apxs ====================== For Apache 1.3 If the apxs path is not /usr/local/apache/bin/apxs replace it with the appropriate path Edit your httpd.conf /usr/local/apache/conf/httpd.conf Add the lines below. ====================== /etc/init.d/httpd restart You can try another values for the above and obtain the best setting. Install mod_security Install this module via WHM WHM >> cPanel >> Addon Modules >> Select “modsecurity ” >>save Blocking IPs maintaining more connections =========================== ============================================ If you feel like there are inordinate amount of requests from a single ip, you ===== Using iptables, you can block the ip with : You can check out the ip to which maximum number of http requests are coming ================== Optimizing the httpd.conf file vi /usr/local/apache/conf/httpd.conf Change the values as follows. MaxKeepAliveRequests 50 Also edit the following options. Timeout Reduce the timeout, Maxclients etc. No Comments yet »RSS feed for comments on this post. TrackBack URI Leave a comment |
![]() Powered and designed by Presoon.com. |