ajout URLs intéressante pour header_checks + liens Postfix
This commit is contained in:
parent
c81fa578b4
commit
494a7678eb
|
@ -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
|
||||
~~~
|
||||
|
||||
|
|
Loading…
Reference in a new issue