One of our primary webservers, which runs Apache on Ubuntu, is coming under attack from heaps of referrer SPAM requests lately. There's enough of this that it is really sucking up our internet bandwidth.
How do others deal with this and block it?
Update: OK, thanks to Kevin, I've installed fail2ban and am seeing what I can filter with it. Any suggestions still gratefully accepted though ;-)