Article View: news.software.nntp
Article #59978Re: Spam filtering is better than trying to hide of spammers
From: 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
Technical Details
Message-ID:
<m3elcsm8a0.fsf@sabre.ping.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed.stueberl.de!news-mue1.dfn.de!allgaeu.org!speedkom.net!news.ecore.net!nrin.ping.de!lilly.ping.de!cliwe.ping.de!not-for-mailReferences:
<PWW39.589183$Yk5.4674007@news.easynews.com> <Xns926292B3734F8vegasedvegasedvegase@64.152.100.164> <n5g0luss8tdc1v0roai6r9954jk2k0t9s0@4ax.com> <d8h0lu879u2cluvvhnl3g505dujlvp6ng7@4ax.com> <fuk0luk2c2frsd4ubortpl0h4q0f98br8o@4ax.com> <01HW.B981F08E00094E8D14975E58@news-central.giganews.com> <mavuluok9jg9jtelfeftu4edh7ccv5preu@4ax.com> <01HW.B98808B00009E628595DB068@news-central.giganews.com> <ar75mu0qe0bqonss7dvs5qtpt4vohircma@4ax.com> <0O0OOOO0O0@news.radio.cz> <65f6muchierbe4d6j1b0m8rspmbrvcerv2@4ax.com> <yl4rdorzfg.fsf_-_@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <m3elcsm8a0.fsf@sabre.ping.de> Subject: Re: Spam filtering is better than trying to hide of spammers Date: Wed, 21 Aug 2002 17:27:51 +0000 From: fdc@cliwe.ping.de (Frank D. Cringle) References: <PWW39.589183$Yk5.4674007@news.easynews.com> <Xns926292B3734F8vegasedvegasedvegase@64.152.100.164> <n5g0luss8tdc1v0roai6r9954jk2k0t9s0@4ax.com> <d8h0lu879u2cluvvhnl3g505dujlvp6ng7@4ax.com> <fuk0luk2c2frsd4ubortpl0h4q0f98br8o@4ax.com> <01HW.B981F08E00094E8D14975E58@news-central.giganews.com> <mavuluok9jg9jtelfeftu4edh7ccv5preu@4ax.com> <01HW.B98808B00009E628595DB068@news-central.giganews.com> <ar75mu0qe0bqonss7dvs5qtpt4vohircma@4ax.com> <0O0OOOO0O0@news.radio.cz> <65f6muchierbe4d6j1b0m8rspmbrvcerv2@4ax.com> <yl4rdorzfg.fsf_-_@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed.stueberl.de!news-mue1.dfn.de!allgaeu.org!speedkom.net!news.ecore.net!nrin.ping.de!lilly.ping.de!cliwe.ping.de!not-for-mail Newsgroups: news.software.nntp Organization: Mellowfields Lines: 34 NNTP-Posting-Host: localhost.ping.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sabre.ping.de 1029950871 967 127.0.0.1 (21 Aug 2002 17:27:51 GMT) X-Complaints-To: news@sabre.ping.de NNTP-Posting-Date: Wed, 21 Aug 2002 17:27:51 +0000 (UTC) User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)