Article View: news.software.nntp
Article #60711Re: anonymous newsgroup possible?
From: Brandon
Date: Thu, 26 Sep 2002 17:25
Date: Thu, 26 Sep 2002 17:25
65 lines
3178 bytes
3178 bytes
Excellent. Thanks a million.
itsy bitsy meowbot wrote:
>
> Brandon wrote:
> > Hi. I'd like to set up an anonymous newsgroup for our company,
> > sort of like a suggestion box, where people can post thoughts
> > or ideas, but their name or IP don't show up in the message or
> > header. We run innd. Is there any way to do this?
>
> Yes, you can use the nnrpd filter to do this. See README.perl_hook for
> more details; you will need INN to have been built --with-perl
>
> Here is a sample filter_nnrpd.pl that will obscure articles posted to a
> newsgroup called local.gripes. Identifying information may still
> appear in your logs, so posters will still need to trust you a little
> bit.
>
> You'll want to remind posters that things like signatures will defeat
> the purpose.
>
> Depending on the what you and your users are using to post, you may
> want to clobber other headers too. Experiment and tweak as needed.
>
> use Sys::Hostname;
>
> my $lasttime = 0;
> my $serial = 0;
>
> sub filter_post {
> my $rval = "";
>
> # Hide the identity in articles posted to the newsgroup local.gripes.
> if ($hdr{'Newsgroups'} =~ /,?local\.gripes,?/) {
>
> # Disallow crossposting to avoid unforeseen abuses
> if ($hdr{"Newsgroups"} ne "local.gripes") {
> $rval = "No crossposting between local.gripes and other groups";
> }
> else {
> $modify_headers = 1;
> # Give everyone the same From: header.
> $hdr{'From'} = "Anonymous Meoward <nobody\@anon.invalid>";
>
> # Clobber the Message-ID
> my $thistime = time();
> if ($thistime != $lasttime) {
> $serial = 1;
> }
> else {
> $serial++;
> }
> $lasttime = $thistime;
> $hdr{'Message-ID'} = "<$thistime.$$.$serial\@" . hostname() . ">";
>
> # Hide the orignating host.
> $hdr{'X-Trace'} = "";
> $hdr{'NNTP-Posting-Host'} = "";
> $hdr{'Organization'} = "";
> }
> }
> $rval;
> }
Technical Details
Message-ID:
<3D934312.8710BDDF@gratuitousgames.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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub.sdsu.edu!newspeer.cts.com!galanthis.cts.com!127.0.0.1.MISMATCH!not-for-mailReferences:
<3D8B6B6A.6879906E@gratuitousgames.com> <0SQi9.2854$7i2.671@nwrddc02.gnilink.net>Show Full Headers
Complete Article Headers
Message-ID: <3D934312.8710BDDF@gratuitousgames.com> Subject: Re: anonymous newsgroup possible? Date: Thu, 26 Sep 2002 10:25:38 -0700 From: Brandon <blacavaNOSPAM@gratuitousgames.com> References: <3D8B6B6A.6879906E@gratuitousgames.com> <0SQi9.2854$7i2.671@nwrddc02.gnilink.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub.sdsu.edu!newspeer.cts.com!galanthis.cts.com!127.0.0.1.MISMATCH!not-for-mail X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: news.software.nntp Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 64 NNTP-Posting-Host: 204.216.236.82 X-Trace: 1033061150 nntp.cts.com 323 204.216.236.82