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
#!/bin/bash | |
# | |
# Config | |
# | |
# if more than the threshold, the IP will be banned | |
THRESHOLD=100 | |
# search this many recent lines of the access log |