🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20445

Re: Diabolical anti-spam nnrpd patch

#20445
From: Jeff Garzik
Date: Tue, 12 Aug 1997 00:00
73 lines
2971 bytes
Forrest J. Cavalier III <mibsoft@epix.net> wrote:
>But I think that in the on-ups-manship spam-race that is currently
>going on, the spammers would quickly move to a superset of virtual host
>names, all which pointed back to the same server.

>How about going back to the old Netiquette standby: you shouldn't
>post to newsgroups you don't read.

>A session where no group reading occurs: (only posting) is probably
>suspect.  By "session," I include multiple nnrpd connects from the
>same IP within minutes of each other.

You would eliminate all Netscape users with this method.  Impatient
news readers often will abort an NNTP command (by closing the cxn) and
open another connection, or have multiple connections open at once.

Here's some methods that would serve to eliminate spamming:

* Token lookups

A list of "kill strings" is always effective, especially on the
make-money-fast crowd.  Check out J. Porter Clark's MMF ncms or
someone running my Perl filter to see hundreds of MMFs still floating
around every day.

Regular expressions that check for ALL CAPS!!! are fairly effective
too.

* Duplicate body

Hash each message body, and reject NN% duplication of last several
posts.

* Posting rate

Track the NNTP posting host IP address, and if the posting rate (for
all connections) exceeds X articles per Y seconds, then it's spam.

* zzzzzzzz Sleep

Simple but effective.  Pause for 30-60 seconds after the transmission
of each post, before acknowledging transfer.

* Forrest's read-then-post

Require that someone enters, and retrieves articles (or headers) from
group G, before being able to post to group G.

The only problem here is off-line readers, who's software will connect,
issue multiple post commands, and then disconnect.  You wind up
censoring a valid portion of the online community.  Also, nnrpd itself
connects to innd, posts, and then disconnects, so make sure you don't
put the code in innd.

* Valid headers

Make sure bogus headers aren't loaded in the Path, check for a valid
From: (or Reply-To) with an actual DNS MX entry, replace the message
id and date with your own, etc.



I'm sure I could come up with more ways given time.

	Jeff



-- 
The surest sign that a man is in love is when he divorces his wife.

Technical Details
Message-ID: <5sqfed$rvc$1@havoc.gtf.gatech.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!not-for-mail
References: <blabla.0009@news1.exit109.com> <5sq6hq$7g6@dfw-ixnews1.ix.netcom.com> <5sq9k7$if6$2@news1.epix.net>

Show Full Headers
Complete Article Headers
Message-ID: <5sqfed$rvc$1@havoc.gtf.gatech.edu>
Subject: Re: Diabolical anti-spam nnrpd patch
Date: Tue, 12 Aug 1997 00:00:00 +0000
From: Jeff Garzik <jeff.garzik@spinne.com>
References: <blabla.0009@news1.exit109.com> <5sq6hq$7g6@dfw-ixnews1.ix.netcom.com> <5sq9k7$if6$2@news1.epix.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
X-Deja-AN: 263771198
Sender: hambone@havoc.gtf.gatech.edu
Organization: Very Slack
Newsgroups: news.software.nntp