🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #21285

Re: idea: refusing spam

#21285
From: tmiller
Date: Fri, 05 Sep 1997 00:00
33 lines
1781 bytes
hrd@eunet.cz (Jan Hrdonka) writes:

> 1) for all incoming articles, remove body, signature and all white
>    space characters
> 2) split the article into N parts
> 3) create a checksum (md5) for each parts
> 4) search for these checksums in a database (dbm)
> 5) if there's an entry with more than M checksums of the same value,
>    refuse the article; else, store checksums and message-id of the
>    new article and accept it

	I did a similar algorithim in a local detector built in python:

	1) Strip non-alphanumerics from the Subject:
	2) Strip whitespace from the body and MD5 the result.
	3) Dump the article into a DB, storing From:, stripped Subject:,
	   number of groups posted to, and body checksum.
	4) Periodically take vectors through the DB collecting identical
	   From:, Subject:, or body checksum; then calculate BI on each
	   vector and report results.

	I never put this in Perl for use as an incoming filter, but
rather used it as a spam detector on our local postings.  It was pretty
successful, but didn't run for more than a month before the architecture
changed and we couldn't run it anymore.

-- 
Cerebus <tmill06@ibm.net>
PGP Fingerprint: 
             BC AB 28 19 A6 A4 FF 5B  CA 4D B4 03 3A A7 F4 5C

Technical Details
Message-ID: <87sovjzvan.fsf@acropolis.ibm.net>
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!not-for-mail
References: <5unggc$9vp$1@news.eunet.cz>

Show Full Headers
Complete Article Headers
Message-ID: <87sovjzvan.fsf@acropolis.ibm.net>
Subject: Re: idea: refusing spam
Date: Fri, 05 Sep 1997 00:00:00 +0000
From: tmiller@acropolis.ibm.net
References: <5unggc$9vp$1@news.eunet.cz>
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!not-for-mail
X-Deja-AN: 269987088
Reply-To: tmill06@ibm.net
Newsgroups: news.software.nntp