Hébergements Web - Mod_evasive20.c
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

Mod_evasive20.c

Von
StephaneH1
Erstellungsdatum 2024-07-17 09:01:34 (edited on 2024-09-04 13:10:43) in Hébergements Web

Les serveurs mutualisés Ovh permettent-ils de filtrer le nombre de requête par Ip par seconde en utilisant mod_evasive20.c (htaccess) ?


DOSHashTableSize 3097

# Pas plus de 2 pages par seconde.
DOSPageCount 2
DOSPageInterval 1

# Pas plus de 150 requetes par seconde (Images, CSS, ...)
DOSSiteCount 150
DOSSiteInterval 1

# Période en seconde durant laquelle on bloque le client.
DOSBlockingPeriod 600

# Ajouter une ou plusieurs adresse IP en liste blanche.
# L'adresse IP locale peut être mise en liste blanche.
DOSWhitelist 127.0.0.1
# Les 3 adresses IP sont celles du Bot de Google.
DOSWhitelist 66.249.65.*
DOSWhitelist 66.249.66.*
DOSWhitelist 66.249.71.*

# Notifier l'alerte avec un mail.
DOSEmailNotify admin@example.org

# Chemin vers le dossier de log de Apache2, mod_evasive.
# Le fichier contiendra les adresses IP blacklistées.
DOSLogDir "/var/log/apache2/mod_evasive/"

# Lancer une commande avec DOSSystemCommand.
# Lancer par exemple un script Iptables :
# DOSSystemCommand "sudo iptables -A INPUT -s %s -j DROP"
# Écrire les logs :
# DOSSystemCommand "/bin/echo %s >> /var/log/mod_evasive/dos_evasive.log && /bin/date >> /var/log/mod_evasive/dos_evasive.log"