Article View: news.software.nntp
Article #29948Re: something going on with news.headhunter.net?
From: Doug S
Date: Tue, 21 Jul 1998 00:00
Date: Tue, 21 Jul 1998 00:00
105 lines
3751 bytes
3751 bytes
Thus spake Jeremy <jeremy@exit109.com>:
>Doug S <doug@cc.ysu.edu> wrote:
>
>> They are "aggressively abusive".
>
>That's an understatement.
>
>> I run cleanfeed. At my site, most of those fail with "too many
>> newsgroups" (when I watch the log, I see a ton of those with
>> headhunter.net message-ids). The remaining ones get nuked because
>> cleanfeed has them in the distributed "badguys" list.
>
>If you use the patch for filter_messageid, you can refuse articles
>from headhunter.net, which is even more fun than rejecting them.
>
I just installed Cleanfeed 0.95.6a (was 0.95.5) - the hardest part was
fitting a few local fixes, but I needed far less of them this time
around. I put the filter_messageid patch in, and for refuse_messageid's
I put:
'refuse_messageids' => '^<cancel\.|news\.HeadHunter\.NET',
It was nice to actually see how many message-id's this was nuking in
ctlinnd mode. But I noticed that a lot of HH posts were still getting
into the filter for rejection - I assume this was because right after
the server came up, I got a lot via IHAVE rather than CHECK.
Since my original patch to nuke "<cancel." was written for both IHAVE
and CHECK, I re-patched nc.c to go through the filter for both. HH
has vanished from my logs now... (thanks for writing the patch well
enough that I could for the most part cut-and-paste it).
*** nc.c.orig Fri Dec 12 11:56:23 1997
--- nc.c Tue Jul 21 22:57:51 1998
***************
*** 627,632 ****
--- 627,635 ----
{
register char *p;
WIP *who;
+ #if defined(DO_PERL)
+ char *perlrc;
+ #endif /* DO_PERL */
if (AmSlave) {
NCwritereply(cp, NCbadcommand);
***************
*** 651,656 ****
--- 654,666 ----
cp->Refused++;
NCwritereply(cp, NNTP_HAVEIT);
}
+ #if defined(DO_PERL)
+ /* invoke a perl message filter on the message id */
+ else if ((perlrc = (char *)HandleMessageID(p)) != NULL) {
+ cp->Refused++;
+ NCwritereply(cp, NNTP_HAVEIT);
+ }
+ #endif
else if (HIShavearticle(p)) {
cp->Refused++;
***************
*** 1552,1557 ****
--- 1562,1573 ----
int msglen;
WIP *who;
+ #if defined(DO_PERL)
+ char *perlrc;
+ #endif /* DO_PERL */
+
+
+
if (AmSlave) {
NCwritereply(cp, NCbadcommand);
return;
***************
*** 1594,1599 ****
--- 1610,1625 ----
#endif
NCwritereply(cp, cp->Sendid.Data);
}
+
+ #if defined(DO_PERL)
+ /* invoke a perl message filter on the message id */
+ else if ((perlrc = (char *)HandleMessageID(p)) != NULL) {
+ cp->Refused++;
+ (void)sprintf(cp->Sendid.Data, "%d %s", NNTP_ERR_GOTID_VAL, p);
+ NCwritereply(cp, cp->Sendid.Data);
+ }
+ #endif
+
/* check history for msg id existence */
else if (HIShavearticle(p)) {
--
Doug S. (doug@cc.ysu.edu) (http://cc.ysu.edu/~doug/)
If you get hung up on what you did wrong, you're never gonna get anywhere.
-- Kenneth Copeland
Technical Details
Message-ID:
<6p3nll$joi@unix1.cc.ysu.edu>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-mailReferences:
<6p1499$me6@dfw-ixnews7.ix.netcom.com> <6p2e6c$1fkm@unix1.cc.ysu.edu> <6p31an$4a$1@news1.exit109.com>Show Full Headers
Complete Article Headers
Message-ID: <6p3nll$joi@unix1.cc.ysu.edu> Subject: Re: something going on with news.headhunter.net? Date: Tue, 21 Jul 1998 00:00:00 +0000 From: doug@cc.ysu.edu (Doug S) References: <6p1499$me6@dfw-ixnews7.ix.netcom.com> <6p2e6c$1fkm@unix1.cc.ysu.edu> <6p31an$4a$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: 373727296 Organization: Youngstown State University Newsgroups: news.admin.net-abuse.usenet,news.software.nntp