Last active
June 4, 2026 15:43
-
-
Save erikyo/50954d271428b4d549b118d3f15533ca to your computer and use it in GitHub Desktop.
Layer 7 DDoS fix - https://modul-r.codekraft.it/how-to-mitigate-a-layer-7-ddos-attack-targeting-the-gutenberg-query-loop-block/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [wp-query-attack] | |
| enabled = true | |
| filter = wp-query-attack | |
| logpath = /var/log/nginx/access.log | |
| maxretry = 3 | |
| bantime = 86400 | |
| action = iptables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Definition] | |
| failregex = ^<HOST> -.*"GET .*query-[0-9]+-page=.*HTTP/1\.[01]" | |
| ignoreregex = |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment