easy deny User-Agent

This commit is contained in:
Gregory Colpart 2017-05-28 10:19:50 +02:00
parent 61685dfa40
commit 5a28681700
2 changed files with 6 additions and 0 deletions

View File

@ -3,3 +3,8 @@
#StartServers 100
#MinSpareServers 40
#MaxSpareServers 60
SetEnvIf User-Agent "^BadBot$" GoAway=1
SetEnvIf User-Agent "Nutch" GoAway=1
SetEnvIf User-Agent "ApacheBench" GoAway=1

View File

@ -12,4 +12,5 @@ MaxRequestsPerChild 0
<Directory /home/>
AllowOverride None
Require all granted
Deny from env=GoAway
</Directory>