Skip to content

Instantly share code, notes, and snippets.

@erikyo
Last active June 4, 2026 15:43
Show Gist options
  • Select an option

  • Save erikyo/50954d271428b4d549b118d3f15533ca to your computer and use it in GitHub Desktop.

Select an option

Save erikyo/50954d271428b4d549b118d3f15533ca to your computer and use it in GitHub Desktop.
[wp-query-attack]
enabled = true
filter = wp-query-attack
logpath = /var/log/nginx/access.log
maxretry = 3
bantime = 86400
action = iptables
[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