[news.software.b] newgroup avalanche protection

news@drivax.UUCP (Wayne Davison) (09/09/89)

The recent rash of bogus newgroup messages has reminded me that I'm glad
I made a change to my newgroup script file (in C news) to totally ignore
messages that were approved by above-user@above-host. The change is very
simple:

*** newgroup.orig	Wed Aug 23 14:57:07 1989
--- newgroup	Wed Aug 23 17:07:27 1989
***************
*** 14,20 ****
  cat >$F
  
  # unapproved ctl msg? then quit
! grep -s '^Approved:' $F >/dev/null || { rm -f $F; exit 0; }
  
  SENDER="`grep '^Sender:' $F | sed 's/^[^:]*: *//'`"
  case "$SENDER" in
--- 14,23 ----
  cat >$F
  
  # unapproved ctl msg? then quit
! APPROVER="`grep '^Approved:' $F | sed 's/^[^:]*: *//'`"
! case "$APPROVER" in
! ""|above-user@above-host)	rm -f $F; exit 0;;
! esac
  
  SENDER="`grep '^Sender:' $F | sed 's/^[^:]*: *//'`"
  case "$SENDER" in
-- 
Wayne Davison          \  /| / /| \/ /| /(_)         davison@drivax.UUCP
                      (_)/ |/ /\| / / |/  \          ...!amdahl!drivax!davison