From 5a28681700677efb560f6f49ffc93f7049a9bc86 Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Sun, 28 May 2017 10:19:50 +0200 Subject: [PATCH] easy deny User-Agent --- apache/files/evolinux-custom.conf | 5 +++++ apache/files/evolinux-defaults.conf | 1 + 2 files changed, 6 insertions(+) diff --git a/apache/files/evolinux-custom.conf b/apache/files/evolinux-custom.conf index def69d90..397f351b 100644 --- a/apache/files/evolinux-custom.conf +++ b/apache/files/evolinux-custom.conf @@ -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 + diff --git a/apache/files/evolinux-defaults.conf b/apache/files/evolinux-defaults.conf index 511396e5..9eba4f6e 100644 --- a/apache/files/evolinux-defaults.conf +++ b/apache/files/evolinux-defaults.conf @@ -12,4 +12,5 @@ MaxRequestsPerChild 0 AllowOverride None Require all granted + Deny from env=GoAway