From d0192c310328f1f0a85f3b7b694996350fd67a3f Mon Sep 17 00:00:00 2001 From: gcolpart Date: Sat, 20 May 2017 14:17:44 +0200 Subject: [PATCH] ajout infos pour interdire en fonction du User-Agent --- HowtoApache.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/HowtoApache.md b/HowtoApache.md index 67333c07..bb5c5511 100644 --- a/HowtoApache.md +++ b/HowtoApache.md @@ -660,3 +660,13 @@ SetEnvIfNoCase X-Forwarded-Proto https HTTPS=on ~~~ Ainsi l'application saura qu'elle est accédée en HTTPS à condition que le reverse proxy soit bien configuré et envoie X-Forwarded-Proto. + +### Interdire en fonction du User-Agent + +~~~{.apache} +SetEnvIf User-Agent "^BadBot$" GoAway=1 +SetEnvIf User-Agent "Nutch" GoAway=1 + + Deny from env=GoAway + +~~~