bloquer_les_attaques_en_force_brute_avec_fail2ban
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| bloquer_les_attaques_en_force_brute_avec_fail2ban [2026/05/10 13:06] – [apache-ratelimit] Flaz | bloquer_les_attaques_en_force_brute_avec_fail2ban [2026/05/10 14:16] (Version actuelle) – [Ne pas bannir] Flaz | ||
|---|---|---|---|
| Ligne 24: | Ligne 24: | ||
| Avant d' | Avant d' | ||
| - | Pour ce faire, on utilise la commande // | + | Pour ce faire, on utilise la commande |
| < | < | ||
| Ligne 81: | Ligne 81: | ||
| ==== apache-badbots ==== | ==== apache-badbots ==== | ||
| Le filtre fourni avec Fail2ban contient une liste prédéfinie de robots malveillants. Pour compléter cette liste sans qu' | Le filtre fourni avec Fail2ban contient une liste prédéfinie de robots malveillants. Pour compléter cette liste sans qu' | ||
| - | <file apache-badbots-custom.local> | + | |
| + | <code - apache-badbots-custom.local> | ||
| [INCLUDES] | [INCLUDES] | ||
| before = apache-badbots.conf | before = apache-badbots.conf | ||
| Ligne 87: | Ligne 88: | ||
| mybotcustom = Bytespider|MJ12bot|SeekportBot|serpstatbot|Barkrowler|YandexBot|AhrefsBot|DotBot|MojeekBot|ZoominfoBot|PetalBot|serpstatbot|BitSightBot|wpbot|WellKnownBot|BLEXBot|AwarioBot|ImagesiftBot|Dataprovider|Amazonbot|GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|SemrushBot|externalhit_uatext|SERankingBacklinksBot | mybotcustom = Bytespider|MJ12bot|SeekportBot|serpstatbot|Barkrowler|YandexBot|AhrefsBot|DotBot|MojeekBot|ZoominfoBot|PetalBot|serpstatbot|BitSightBot|wpbot|WellKnownBot|BLEXBot|AwarioBot|ImagesiftBot|Dataprovider|Amazonbot|GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|SemrushBot|externalhit_uatext|SERankingBacklinksBot | ||
| failregex = ^< | failregex = ^< | ||
| - | </file> | + | </code> |
| Ligne 96: | Ligne 97: | ||
| Source : [[https:// | Source : [[https:// | ||
| + | |||
| + | ===== Idées d' | ||
| + | ==== Ne pas bannir ==== | ||
| + | Une des actions envisageable est de signaler un bannissement potentiel sans effectuer le bannissement. C'est tout à fait possible mais le fichier jail.conf ne définit pas le raccourci d' | ||
| + | |||
| + | Un tel raccourci se déduit facilement d'un raccourci existant. Par exemple : | ||
| + | < | ||
| + | # ban & send an e-mail with whois report to the destemail. | ||
| + | action_mw = %(action_)s | ||
| + | %(mta)s-whois[sender=" | ||
| + | </ | ||
| + | devient, par simple suppression de l' | ||
| + | < | ||
| + | # send an e-mail with whois report to the destemail. | ||
| + | action_noban_mw = %(mta)s-whois[sender=" | ||
| + | </ | ||
| + | que l'on pourra ajouter dans la section // | ||
bloquer_les_attaques_en_force_brute_avec_fail2ban.1778418392.txt.gz · Dernière modification : de Flaz
