🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #31843

Re: CleanFeed Question

#31843
From: Mike Wilson, UCE Account
Date: Tue, 29 Sep 1998 00:00
48 lines
2092 bytes
Jeremy <jeremy@exit109.com> wrote:
> Path is not checked, as there's no good way to tell from that whether
> something originated from the system in question or is transit traffic.

> It should block on the From though.  Keep in mind that .com/.net/etc
> is added for you, so don't put that in your entry.  (This is basically
> for historical reasons and will very likely change, as the default
> badguys list will be going away completely before long.)


Here is what I added in filter_innd.pl. If you see any problems let me know.

[...]
       if ($config{'check_supersedes_path'}) {
            if (exists $hdr{'Supersedes'}) {
                ($hdr{"Path"} =~ /($config{'bad_cancel_paths'})/o) &&
                    (return reject ("Supersede with $1 in path", "Rogue supersede"));
            }
        }

        #
        #       added msw 9-29-98
        #       checks patch for bagguys
        if ($config{'check_path'}) {
                ($hdr{"Path"} =~ /((?:\b$config{'badguys'})\.(?:$tlds)\b)/o) &&
                (return reject ("Path with $1 in PATH", "PATH Badguy Match"));
        }


        if ($config{'do_bot_checks'}) {
[...]

You also need to add a check_path to cleanfeed.conf:

[...]
   ### Check paths for matches in badguys
   'check_path' => 1,
[...]


So far seems to be working as I wanted.

-- 
---
Mike Wilson 				http://www.drwho.org
					http://www.pobox.com/~mwilson

Technical Details
Message-ID: <6uresg$pgb$1@valkyrie.OnRamp.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!not-for-mail
References: <6uquq3$ig5$1@valkyrie.OnRamp.Net> <6ur485$num$1@news1.exit109.com>

Show Full Headers
Complete Article Headers
Message-ID: <6uresg$pgb$1@valkyrie.OnRamp.Net>
Subject: Re: CleanFeed Question
Date: Tue, 29 Sep 1998 00:00:00 +0000
From: uce_mike@yahoo.com (Mike Wilson, UCE Account)
References: <6uquq3$ig5$1@valkyrie.OnRamp.Net> <6ur485$num$1@news1.exit109.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
X-Deja-AN: 396098547
Organization: http://www.drwho.org
User-Agent: tin/pre-1.4-971215 (UNIX) (SunOS/5.6 (sun4u))
Newsgroups: news.software.nntp