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 + +~~~