Article View: news.software.nntp
Article #3004Re: Spam detection -- methods?
From: halasz
Date: Wed, 02 Nov 1994 23:06
Date: Wed, 02 Nov 1994 23:06
36 lines
3178 bytes
3178 bytes
In article <38kmbe$8fh@harbinger.cc.monash.edu.au>, acbul1@penfold.cc.monash.edu.au (Andrew Bulhak) writes:
> Do you want to pay for your news posts?
Nothing wrong with paiing; one pais for sending a letter to the editor
But here is a technical suggestion:
For each new incummind article u , run this on it:
tr -cs '[@-~]' '[\012*]' | tee M | tr '[`-~]' '[@-^]' | sort | uniq -c > W
The outputted files I call M(u) and W(u) .
Compare this with the latest erlier article w , for which M(w) onlie
slightlie differs from M(u) in size. This operation I call J :
join -a3 W(u) W(w) | awk '{ v = $2 - $3; s += v * v } END { print sqrt(s)/NR }'
If a small number is printed, then there is a chance that u and w are
variants of the same article, and with "diff" compare M(u) and M(w) .
If this also shows likeness, then likewize match u with articles in a queue
of suspicious articles. If there is no match, enqueue u with its M and
W , and a counter T which is at first in newsgroups the length of the
newsgroup-line, and drop the oldest. If there is a match, shift the match
to the back of the queue, and bump its counter for each newsgroup in u .
If nou T is too great, warn of a suspect spam.
Note that manie variables are left in this, what the limits are that match a
real spamth. Furthermore, I am not sure that the likeness-meazure in the
"awk"-script is reallie the best one.
There is also the question of houmanie newsgroups are in the newsgroup line,
and whether thei are related. If I see "comp.org.acm,comp.org.ieee,
ieee.general", I suspect that it is legitimat: "comp.org" is found in one
pair, "ieee" in another, and the pairs overlap and exhaust the list. This is
suspect: "alt.fan.kello-kitty,rec.arts.sf.written.robert-jordan,comp.std.c,
rec.folk-dancing". There is nothing in common but "rec.", but that is the
root of a wyyyde tree. Care is needed, though, for "alt.hello-kitty" and
"alt.gothic" hav been legitimatlie paird, and also "alt.atheism" and
"alt.christnet.philosophy" (even if to no:one s comfort and pleazure).
It will be a long while ere I anew read this newsgroup
Technical Details
Message-ID:
<39961n$j1k@caip.rutgers.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.programmer.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!jabba.fdn.org!uunet!dziuxsolim.rutgers.edu!caip.rutgers.edu!not-for-mailReferences:
<387pmq$blt@harbinger.cc.monash.edu.au> <389ofp$6ee@spool.cs.wisc.edu> <38kmbe$8fh@harbinger.cc.monash.edu.au>Show Full Headers
Complete Article Headers
Message-ID: <39961n$j1k@caip.rutgers.edu> Subject: Re: Spam detection -- methods? Date: Wed, 02 Nov 1994 23:06:31 +0000 From: halasz References: <387pmq$blt@harbinger.cc.monash.edu.au> <389ofp$6ee@spool.cs.wisc.edu> <38kmbe$8fh@harbinger.cc.monash.edu.au> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.programmer.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!jabba.fdn.org!uunet!dziuxsolim.rutgers.edu!caip.rutgers.edu!not-for-mail Newsgroups: news.admin.misc,alt.current-events.net-abuse,comp.programming,news.software.nntp,comp.unix.programmer,news.future Organization: caip Lines: 35 Sender: halasz@caip.rutgers.edu Distribution: inet NNTP-Posting-Host: caip.rutgers.edu