From 494a7678ebc212136fe5191144da8a9dc8e33117 Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Mon, 15 Apr 2024 13:14:49 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20URLs=20int=C3=A9ressante=20pour=20heade?= =?UTF-8?q?r=5Fchecks=20+=20liens=20Postfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoHaproxy.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/HowtoHaproxy.md b/HowtoHaproxy.md index 19416873..2b56edab 100644 --- a/HowtoHaproxy.md +++ b/HowtoHaproxy.md @@ -1048,4 +1048,29 @@ Dans le cas de l'utilisation spécifique de `HTTP 100 CONTINUE`, cf [HowtoHTTP#h Solution pour contourner : passer en version supérieure (par exemple HAProxy 2.4) +### Go away bad bots + +Ajout d'une règle : + +~~~ +# goaway bad bots +acl goaway-badbots hdr_sub(user-agent) -i -f /etc/haproxy/blacklist-useragent.txt +http-request deny if goaway-badbots +~~~ + +avec `/etc/haproxy/blacklist-useragent.txt` contenant : + +~~~ +thesis-research-bot +Amazonbot +Bytespider +SeekportBot +PetalBot +DotBot +YandexBot +SEOkicks +serpstatbot +AhrefsBot +MJ12bot +~~~