🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #73649

Re: [leafnode] filter examples

#73649
From: Whiskers
Date: Thu, 18 May 2006 11:58
78 lines
4266 bytes
On 2006-05-17, Troy Piggins <usenet-0605@piggo.com> wrote:
> Got my leafnode server up and running smooth.  Liking it so far.
>
> Just wondering if anyone has some sample filters to post or links?
>
> The 2 line sample filters provided with the package are pretty
> simplified.  I'll come up with some of my own but no need to reinvent
> the wheel I reckon.

People may be reluctant to reveal their filter files, for fear that the 
clowns they are successfully blocking will find clues to enable them to 
by-pass the existing filters.  However, I'll risk it:

.-----[ /etc/leafnode/filters ]
| ^Newsgroups:.*[, ]alt.nuke.the.usa$
| ^Newsgroups:.*[, ]alt.nuke.the.usa,
| 
| ^Newsgroups:.*[, ]rec.ponds$
| ^Newsgroups:.*[, ]rec.ponds,
| 
| ^Newsgroups:.*[, ]alt.religion.jehovahs-witn$
| ^Newsgroups:.*[, ]alt.religion.jehovahs-witn,
| 
| ^Newsgroups:.*[, ]comp.os.linux.advocacy$
| ^Newsgroups:.*[, ]comp.os.linux.advocacy,
| 
| ^Newsgroups:.*[, ]talk.politics.guns$
| ^Newsgroups:.*[, ]talk.politics.guns,
| 
| ^Newsgroups:.*[, ]alt.os.widows-xp$
| ^Newsgroups:.*[, ]alt.os.widows-xp,
| 
| ^Newsgroups:.*[, ]alt.troll$
| ^Newsgroups:.*[, ]alt.troll,
| 
| ^Followup-To:.*[, ]uk.local.essx$
| ^Followup-To:.*[, ]uk.local.essx,
| 
| ^Path:.*[!]133.256.1.103.MISMATCH!not-for-mail$
| ^Path:.*[!]218.102.48.125.MISMATCH!127.0.0.1!not-for-mail$
| ^Path:.*[!]news.alt.net!usenet.dk!news$
| ^Path:.*[!]mail2news$
| ^Path:.*[!]news.bananasplit.info!nym2news
| ^Path:.*[!]257.2.2.193.Mi5M4tcH$
'-----

My filters are to block some particular cross-posting nuisances, and those 
'mail to news gateways' and 'anonymous posting services' or other servers 
(real or fake) that seem to me to be used so heavily for negative purposes
that I'll risk missing any 'legitimate' article that might be posted that
way.  Other people will probably have quite different ideas about what to
block.  

I benefit from using upstream servers that have effective 'anti-spam' and
'anti-flood' filtering of their own, otherwise my filters file would have
to be a lot bigger and more complex.

Obviously, if you want to subscribe to a group that is plagued by 
cross-posting trolls, your filters need to be a lot more subtle and 
selective - and are probably best done using your usenet client rather 
than leafnode.

Note that using any element to filter on, that is not included in the 
'overview', is known as 'expensive' filtering as it requires that the 
whole body be fetched before the filter can be applied - thus not saving 
any bandwidth compared with not having the filter in place, and making the 
fetch operation take longer.

You can see what the overview does contain by looking at leafnode's own 
overview files, eg /var/spool/news/news/software/nntp/.overview - the 
first entry on each line is the local article number, and the rest of the 
line is each of the 'overview headers' (missing the name of the header, so 
you have to do some interpretation to work out what's there).

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Technical Details
Message-ID: <l44uj3-g3l.ln1@ID-107770.user.individual.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <20060518082558@usenet.piggo.com>

Show Full Headers
Complete Article Headers
Message-ID: <l44uj3-g3l.ln1@ID-107770.user.individual.net>
Subject: Re: [leafnode] filter examples
Date: Thu, 18 May 2006 12:58:45 +0100
From: Whiskers <catwheezel@operamail.com>
References: <20060518082558@usenet.piggo.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.nntp
Organization: is an alien concept
Lines: 78
X-Trace: individual.net BrCD7oxkTSTnpEbLJkRu0A1WRZMYM+kSOVedHYmca5fBkeRJB/
X-Orig-Path: ID-107770.user.individual.net!news
X-Face: (8UIp\C%,7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_"Pmt)1xC~QW%bU/xrlDuux";
 aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00xYer];
 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@p&
 g^8<z5>HA
User-Agent: slrn/0.9.8.1 (Linux)