https://github.com/stanaka/mod_dosdetector
参考にさせて頂きました → http://blog.prophet.jp/1175
$ wget https://github.com/stanaka/mod_dosdetector/archive/master.zip
$ unzip mod_dosdetector-master.zip
$ cd mod_dosdetector-master
$ vi Makefile
old) APXS=/usr/sbin/apxs
new) APXS=/home/end0tknr/local/apache24/bin/apxs
$ make install
$ vi /home/end0tknr/local/apache24/conf/httpd.conf
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule dosdetector_module modules/mod_dosdetector.so
<IfModule mod_dosdetector.c>
DoSDetection on
DoSPeriod 30
DoSThreshold 30
DoSHardThreshold 60
DoSBanPeriod 60
DoSTableSize 100
DoSForwarded on
DoSIgnoreContentType ^(image/|application/javascript|text/css)
DoSIgnoreIpRange 10.82.96.129
</IfModule>
RewriteEngine On
RewriteCond %{ENV:SuspectHardDoS} =1
RewriteRule .* - [R=503,L]
ErrorDocument 503 "Server is busy."