Skip to content

Instantly share code, notes, and snippets.

View Rayman2200's full-sized avatar

Thomas Chojecki Rayman2200

  • Bremen, Germany
View GitHub Profile
@nicjansma
nicjansma / check-apache-access-log-spammers.sh
Created January 25, 2012 04:19
Auto-ban website spammers via the Apache access_log
#!/bin/bash
#
# Config
#
# if more than the threshold, the IP will be banned
THRESHOLD=100
# search this many recent lines of the access log