There's a module in apache to help DDOS attacks a bit the module is named as mod_dosevasive. The link to download the latest stable release is
www.nuclearelephant.com/projects/dosevasive/
INSTALLATION
1. wget the file and untar it
2. cd mod_dosevasive
3. Run ./configure --add-module=src/modules/dosevasive/mod_dosevasive.c
4. make
5. make install
With DSO Support, Ensim, or CPanel:
1. $APACHE_ROOT/bin/apxs -iac mod_dosevasive.c
2. Restart Apache
APACHE v2.0
-----------
1. Extract this archive
2. Run $APACHE_ROOT/bin/apxs -i -a -c mod_dosevasive20.c
3. The module will be built and installed into $APACHE_ROOT/modules, and loaded into your httpd.conf
4. Restart Apache
If you need to have a look at some more details and configs please have a look at the link
http://www.yourwebsupport.com/sforum...php?topic=48.0
Please comment.