Skip to content

Instantly share code, notes, and snippets.

@pointhi
Created March 3, 2016 11:59
Show Gist options
  • Save pointhi/1b01f137c730edbc27f7 to your computer and use it in GitHub Desktop.
Save pointhi/1b01f137c730edbc27f7 to your computer and use it in GitHub Desktop.
fail2ban rule to block bots which are abusing the searx proxy
# Fail2Ban configuration file
#
# List of proxy requests over searx
#
# Author: Thomas Pointhuber
#
# revision: 1.0
#
[Definition]
# Option: failregex
# Notes.: Regexp to catch proxy requests over search
# Values: TEXT
#
failregex = ^<HOST> -.*"(GET|POST)\s*/image_proxy
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
# Values: TEXT
#
ignoreregex =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment