Created
March 3, 2016 11:59
-
-
Save pointhi/1b01f137c730edbc27f7 to your computer and use it in GitHub Desktop.
fail2ban rule to block bots which are abusing the searx proxy
This file contains 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
# 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