Article View: news.software.nntp
Article #59992Re: Configuring readers.conf
From: Russ Allbery
Date: Thu, 22 Aug 2002 13:05
Date: Thu, 22 Aug 2002 13:05
24 lines
1839 bytes
1839 bytes
Mike Mimic <ppagee@yahoo.com> writes:
> But where can I find a filter which will disallow any cross posting on
> my server (so I will get rid of spam and will get rid of local spam,
> too)?
If you're happy disallowing *any* crossposting, the following Perl filter
should do it:
sub filter_post {
if ($hdr{'Newsgroups'} =~ /,/) {
return "Crossposting is not allowed";
}
return "";
}
Install it as filter_nnrpd.pl.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<ylvg63yrf8.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!nntp.stanford.edu!not-for-mailReferences:
<3D624F8E.8010707@yahoo.com> <ajude5$l4t$1@puck.litech.org> <3D62C8C0.30004@yahoo.com> <ylptwdt615.fsf@windlord.stanford.edu> <3D63707E.5090507@yahoo.com> <yladngrzy2.fsf@windlord.stanford.edu> <3D647AC7.8080404@yahoo.com>Show Full Headers
Complete Article Headers
Message-ID: <ylvg63yrf8.fsf@windlord.stanford.edu> Subject: Re: Configuring readers.conf Date: Thu, 22 Aug 2002 06:05:47 -0700 From: Russ Allbery <rra@stanford.edu> References: <3D624F8E.8010707@yahoo.com> <ajude5$l4t$1@puck.litech.org> <3D62C8C0.30004@yahoo.com> <ylptwdt615.fsf@windlord.stanford.edu> <3D63707E.5090507@yahoo.com> <yladngrzy2.fsf@windlord.stanford.edu> <3D647AC7.8080404@yahoo.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 23 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1030021547 3144 171.64.13.23 (22 Aug 2002 13:05:47 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter, sparc-sun-solaris2.6) Cancel-Lock: sha1:w6dthFpYxl5hkoq0l7m+aMnFhAo=