🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20470

Re: Diabolical anti-spam nnrpd patch

#20470
From: Jonathan I. Kamens
Date: Wed, 13 Aug 1997 00:00
28 lines
2294 bytes
In article <5ss15k$9ua$2@zingo.tninet.se>, prl@algonet.se (Ragnar Lonn) writes:
|> Might do some good, though, if you upped the limit so that the first
|> N posts (say 10-20) were accepted without delay. But then again, a spammer
|> might find that out and post 19 messages, then logout and logon again.

Obviously, you need to keep a persistent hash table associating IP
addresses (or some other unique authentication token if clients use
dynamic IP; if you don't have a mechanism at this point for associating
an incoming posting or E-mail message with a specific authenticated
user, you shouldn't be running an ISP) with the number of messages
recently sent via E-mail or posted.  This table could be GC'd by
periodically "decaying" the values in it and then deleting the ones
which drop below a minimum threshold (e.g., divide by 2 once per minute
and delete any entries which are less than 1).  Then, each time a user
sends an E-mail message or posts a message to the Usenet, his counter
in the hash table is incremented (or a new counter with a value of 1 is
created if one wasn't there previously), and the current counter value
can be used as the input of an arbitrary function to determine the
sleep time (e.g., don't sleep at all for counters less than 20, but
sleep for a number of seconds equal to the counter value for anything
higher).  Both the decay algorithm and the sleep algorithm can be
tweaked to achieve the desired delay characteristics.

-- 
Jonathan Kamens  |   Veritas Software Corporation  |   jik@cam.ov.com

Technical Details
Message-ID: <5ssf8g$e8n$3@pad-thai.cam.ov.com>
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> <5sqfed$rvc$1@havoc.gtf.gatech.edu> <5sqpp3$kom$2@synthemesc.insync.net> <5ss15k$9ua$2@zingo.tninet.se>

Show Full Headers
Complete Article Headers
Message-ID: <5ssf8g$e8n$3@pad-thai.cam.ov.com>
Subject: Re: Diabolical anti-spam nnrpd patch
Date: Wed, 13 Aug 1997 00:00:00 +0000
From: jik@cam.ov.com (Jonathan I. Kamens)
References: <blabla.0009@news1.exit109.com> <5sq6hq$7g6@dfw-ixnews1.ix.netcom.com> <5sq9k7$if6$2@news1.epix.net> <5sqfed$rvc$1@havoc.gtf.gatech.edu> <5sqpp3$kom$2@synthemesc.insync.net> <5ss15k$9ua$2@zingo.tninet.se>
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: 264283958
Organization: OpenVision Technologies, Inc.
Newsgroups: news.software.nntp