forked from evolix/ansible-roles
easy deny User-Agent
This commit is contained in:
parent
61685dfa40
commit
5a28681700
|
@ -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
|
||||
|
||||
|
|
|
@ -12,4 +12,5 @@ MaxRequestsPerChild 0
|
|||
<Directory /home/>
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
Deny from env=GoAway
|
||||
</Directory>
|
||||
|
|
Loading…
Reference in a new issue