글 수 369
cd /usr/src
git clone https://github.com/shivaas/mod_evasive
cd mod_evasive
$APACHE_ROOT/bin/apxs -i -a -c mod_evasive24.c
아파치 환경설정에 모듈 추가 확인
LoadModule evasive20_module modules/mod_evasive24.so
아파치 환경설정에 추가
<IfModule evasive24_module>
DOSHashTableSize 3097
DOSPageCount 3
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10
DOSEmailNotify knightsd@tocup.net
DOSLogDir "/apm/server/apache/httpd/logs/mod_evasive.log"
#DOSSystemCommand "su - someuser -c '/sbin/... %s ...'"
</IfModule>
아파치 재시작