DOS攻撃の対策モジュールを変更したのをメモするのを忘れていたのでメモしておきます。
旧記事
Dosアタック対策 Apache2 Vine Linux
# wget http://ncu.dl.sourceforge.net/sourceforge/moddosdetector/mod_dosdetector-0.2.tar.gz
# tar xvzf mod_dosdetector-0.2.tar.gz
# cd mod_dosdetector-0.2
# make
# make install
# vi /etc/httpd/conf.d/dos_attack.conf
RewriteEngine On
RewriteCond %{ENV:SuspectHardDoS} =1
RewriteRule .* - [R=503,L]
ErrorDocument 503 "Server is busy."
AddType image/vnd.microsoft.icon .ico
DoSDetection On
DoSPeriod 60
DoSThreshold 70
DoSHardThreshold 90
DoSBanPeriod 7200
DoSTableSize 500
DoSIgnoreContentType ^(image/|application/|text/javascript|text/css)
最近のコメント