🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #236400

Re: [slrn] can I score on posting host?

#236400
From: W. Citoan
Date: Wed, 07 Oct 2009 01:43
78 lines
4277 bytes
Mike Yetto wrote:
>  Bada bing invalid@domain.invalid <invalid@domain.invalid> bada bang:
> > On 2009-10-05, Whiskers <catwheezel@operamail.com> wrote:
> >> See <http://slrn.sourceforge.net/docs/score.txt>
> >>
> >
> > Thanks guys I forgot to escape the dot qualified in the spammer's
> > ipaddr. It's just one spamming bastard I'm trying avoid who is
> > posting from Verizon but over a month or so his ipaddr stayed the
> > same so he probably has a static ip.

If he was coming via Verizon's Usenet server, he's not anymore.  Verizon
dropped Usenet last month. 

>  Not necessarily.  If he leaves his router on it will maintain a
>  lease on the IP addresses indefinitely.
> 
> > I used NNTP-Posting-Host: 71\.188\.113\.235 and it works now.
> 
>  It could change after a prolonged power-outage in his
>  neighborhood, or if his cat unplugs the router.

Here's a macro to automate adding such a rule.  I've used it before on
some persistent spammers though I find know that I've switched over to
eternal-september.org, I see a lot less spam.  They do a good job of
filtering it.

define kill_posting_host()
{
  variable status = is_article_visible();

  if ( status & 1) {
    
    variable postinghost = extract_article_header( "NNTP-Posting-Host");
    variable ph_exists   = strlen(postinghost);
  
    if ( ph_exists > 0) {

      (postinghost, ) = strreplace(postinghost, "\.", "\\\.", strlen (postinghost));

      variable expiry_date = localtime(_time() + (365 * 24 * 3600));
	    variable expiry = string(expiry_date.tm_mon+1)+"/"+
	                      string(expiry_date.tm_mday)+"/"+
	                      string(expiry_date.tm_year+1900);

      variable scorefile = make_home_filename( get_variable_value("scorefile") );

      variable newsgroup = current_newsgroup;

      variable fp = fopen(scorefile, "a");
        if (fp == NULL) {
          error ("Could not open scorefile");
        } else {
          () = fputs("\n%BOS\n%Score created by kill_posting_host\n\n", fp);
          () = fputs("[" + newsgroup + "]\nScore: =-500\nExpires: " + expiry + "\n", fp);
          () = fputs("  NNTP-Posting-Host: " + postinghost + "\n", fp);
          () = fputs("%EOS\n", fp);
          () = fclose(fp);
        }
    
    } else {
      error ("Article doesn't contain a NNTP-Posting-Host header");
    }

  } else {
     error ("Article not displayed");
  }

  call("hide_article");
  reload_scorefile(1);
}
definekey ("kill_posting_host", "\eh", "article");
  
- W. Citoan
-- 
Claiming that your operating system is the best in the world because more
people use it is like saying McDonalds makes the best food in the world.
-- Anonymous
Technical Details
Message-ID: <slrnhcnsid.474.wcitoan@wcitoan-via.eternal-september.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.CARNet.hr!weretis.net!feeder2.news.weretis.net!feeder.eternal-september.org!eternal-september.org!news.eternal-september.org!not-for-mail
References: <slrnhcjhkm.7jb.invalid@invalid.org> <20091005232000@usenet.piggo.com> <slrnhckjtm.44j.invalid@invalid.org> <slrnhckqnp.bu5.catwheezel@ID-107770.user.individual.net> <slrnhcm2gg.3np.invalid@invalid.org> <slrn20091006081615.475.twooffive@may.eternal-september.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnhcnsid.474.wcitoan@wcitoan-via.eternal-september.org>
Subject: Re: [slrn] can I score on posting host?
Date: Wed, 07 Oct 2009 01:43:49 +0000
From: "W. Citoan" <wcitoan@NOSPAM-yahoo.com>
References: <slrnhcjhkm.7jb.invalid@invalid.org> <20091005232000@usenet.piggo.com> <slrnhckjtm.44j.invalid@invalid.org> <slrnhckqnp.bu5.catwheezel@ID-107770.user.individual.net> <slrnhcm2gg.3np.invalid@invalid.org> <slrn20091006081615.475.twooffive@may.eternal-september.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.CARNet.hr!weretis.net!feeder2.news.weretis.net!feeder.eternal-september.org!eternal-september.org!news.eternal-september.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 78
X-Trace: news.eternal-september.org
 U2FsdGVkX195nLoQSk5vkbpQSWAFvyn8ZCH3yk1mgqDhomep+pE67g90OjN841VbK/dmsUrexNl1fvn6yuWKYSCybEAHL8qio67L3gcISM0VmUJKrrb8COBrp79fBYBav2870zM9/zg/e0HNSZuuFEmRGzaxyg1f
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Wed, 7 Oct 2009 01:43:49 +0000 (UTC)
X-Antivirus-Status: Clean
X-Auth-Sender: U2FsdGVkX18+vv92lm3DMiUMUXjCZhDXlEivxjcT/LQ=
X-Antivirus: avast! (VPS 091006-0, 10/06/2009), Outbound message
Cancel-Lock: sha1:Mq3A2PmFRoCYRVJY9TMlx1WMmqA=
User-Agent: slrn/0.9.8.1 (Win32)