I only had a couple of responses to my call for SpamValve testers. One of the testers has already begun using SpamValve on his FreeBSD server. The other is tied up at the moment, but is going to attempt to adapt it to work on a Linux server sometime next week.
In the meantime, I’ve started using it to filter spam hits to my mail service. This was accomplished with a one-liner:
tail -0f /var/log/maillog | \
perl -e 'while(<>){ m/Mail from (.*) rejected/; \
system("/usr/local/sbin/svupdate", $1) if $1;}'
The command above watches the end of my sendmail log for entries indicating messages rejected by RBL checks. When it matches one, it sends the IP number to svupdate, which updates the spam counter for that host. That’s how easy it can be to use SpamValve to monitor a network service.
That said, I’m going to go ahead and make the code generally available. Obviously, feedback is welcome.
Download SpamValve: .ZIP (15K) or .tar.gz (11K)
I’m dubbing this SpamValve Version 1.0-alpha-2 “Hyrax”.















2 Comments
did you ever see that RSSfeed of this entry?
it make a mess of my reader.
please use an image of the code
you like to show us
not the code itself please
Sorry about that. When I cut and pasted the code sample, I forgot to escape the < character. Fixed.
8 Trackbacks
SpamValve Download I only had a couple of responses to my call for SpamValve testers. One of the testers has already begun using SpamValve on his FreeBSD server. The other is tied up at the moment, but is going to attempt to adapt it to work on a Linux server sometime
, Piece of mind images by major.com » JILLIN’ OFF nudes, NSFW Tech Gadgets Blog - LiewCF.com » Hello Kitty Mobile Phones Gadgets Jefte.net » The state of PNG transparency Design geek ramblings » SpamValve Download Web, Spam, Servers, Services, Email, SpamValve Tech Gadgets Blog - LiewCF.com » Star Wars Episode III - Revenge of the Sith Leaked for Download Internet Bad Astronomy Blog » FIRST EXOPLANET IMAGE CONFIRMED!
[...] k at later: A potentially interesting piece on WordPress themes An interesting looking anti-spam tool But they’ll have to wait. This entry was pos [...]
Cursing My Blessings on the Spam Front
Just my luck. In the week I’ve been testing spamvalve I’ve had no comment spam… until 5am this morning.
The spammed post was viewed by one IP address then, moments later, a comment was left on that post from a second IP address whi…
Battening Down the Hatches
I’ve been inspired and encouraged by Dougal and Michael to tie together their respective spamblocking scripts. I’m testing the hybrid now.
Assuming all works as planned, if a spambot is detected and blocked by Bad Behavior, SpamValve wil…
[...] [EDIT] Back on again, please report any problems. Suggestions that I have found useful include: Apache mod_security, Spam Valve, Bad behavior, WP Hashcash and Referer Bouncer I have already implemented a couple of these and am in the process of rewriting a couple more to suit my needs. The first three are very promising. Bad Behavio(u)r has some clever code and when used without the logging feature, is very swift. I might tweak the code a bit to make it even more transparent and engage it *before* the Wordpress process using Addhandler. Using JS verification is an option that I would consider but would rather stay away from. (Visited 118 times) [...]
[...] I like to think that I’ve got some pretty decent spam prevention measure in place on my server. My mail server uses RBL/DNSBL services and sets maximum limits for certain protocol violations. All my blogs use Akismet for comment spam detection. I’ve got a large number of entries in my comment moderation and blacklist lists. And I hook it all together into my SpamValve plugin, which automatically adds firewall rules to block repeat offenders. [...]
Blocking Bot Requests with Apache…
SpamValve from Geek Ramblings looks great!
……