Created
February 18, 2016 01:06
-
-
Save chihirokaasan/9851f158c8025e8c98c1 to your computer and use it in GitHub Desktop.
/etc/httpd/conf.d/mod_evasive.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LoadModule evasive20_module modules/mod_evasive20.so | |
<IfModule mod_evasive20.c> | |
DOSHashTableSize 3097 | |
#1秒間に何回同じページにアクセスされたら | |
DOSPageCount 5 | |
#1秒間に何回サイトにアクセスされたら | |
DOSSiteCount 30 | |
#1秒間でのページアクセス | |
DOSPageInterval 1 | |
#1秒間でのサイトアクセス | |
DOSSiteInterval 1 | |
#ブロック時間 | |
DOSBlockingPeriod 30 | |
#アラートをメールで飛ばす | |
DOSEmailNotify "-s 'DoS Alert' hoge@kaasan.info" | |
#ログディレクトリ | |
DOSLogDir "/var/lock/mod_evasive" | |
#テスト実行時にはコメントアウトしておくこと | |
DOSWhitelist 127.0.0.1 | |
#テスト実行時にはコメントアウトしておくこと | |
DOSWhitelist 192.168.1.* | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment