Thread View: news.software.nntp
1 messages
1 total messages
Started by Frank D. Cringle
Wed, 21 Aug 2002 17:27
Re: Spam filtering is better than trying to hide of spammers
Author: Frank D. Cringle
Date: Wed, 21 Aug 2002 17:27
Date: Wed, 21 Aug 2002 17:27
35 lines
3309 bytes
3309 bytes
Russ Allbery <rra@stanford.edu> writes: > In news.software.nntp, TGOS <tgos@invalid.invalid> writes: > > [ Stuff about detecting spam using Java and CRC ] > CRC32 is not designed to avoid collisions; it's designed to detect single > byte errors in data. You're using the hash for a purpose for which it's > not designed, and I think you need some type of defense in here regarding > the collision space. > > Don't forget the birthday paradox. Hash collisions are a lot more likely > than they intuitively appear. > > This is not to say that you can't use CRC, but I'm betting you're going to > need a lot more than 32 bits to get a reasonable collision rate. I wrote a spam killer a few years ago and used it for some time before switching to cleanfeed. It calculates 16 separate 16-bit CRCs over selected headers and all the lines of the article. Each CRC is accumulated over a different set of lines. The 256-bit signature that results is fuzzily compared to older signatures. They are considered similar if no more than 2 of the 16 CRC values differ. When the number of hits on a signature exceeds a threshold, past and future articles with that signature are canceled locally. The cache of signatures ages based on hit-rate, so a signature that only occurred once will be forgotten earlier than one that has been repeated. Here is the source. No documentation other than a few comments, I'm afraid. http://www.ping.de/~fdc/misc/spam-killer.c -- Frank Cringle, fdc@cliwe.ping.de voice: (+49 7745) 928759; fax: 928761
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads