Hi Grant and The Doctor,
IS there any way using
cleanfeed.local file
to block
news.neodome.net abuse
I think there is.
Take a look at the various options in cleanfeed.pl and cleanfeed.local.
There should be at least one thing that jumps out at you.
I see that Cleanfeed contains:
# Try and ascertain the source news service.
if ($hdr{'Injection-Info'} =~ /^$hws*($Hostname)[ \t;]/) {
$state{injection_host} = "$1"
} elsif ($hdr{'X-Trace'} =~ /^$hws*($Hostname)$hws/) {
$state{injection_host} = "$1"
} else {
$state{injection_host} = first_path_host($hdr{Path});
};
# Extract the right-most FQDN from a Path header
sub first_path_host{
local $_ = shift;
s/(![^\.]+)+$//; # Strip RH non-FQDNs
s/!\.POSTED.*//; # Strip diagnostic host entry
s/.*!//; # Strip all but RH path entry
return $_;
};
So I bet adding that to cleanfeed.local would do the trick:
return reject('Banned injecting news server')
if ($state{injection_host} =~ /news.server.to.ban/i);
or if %state is not recognized there (defined in filter_art), just
re-use first_path_host code like this:
local $injection_host = $hdr{'Path'};
$injection_host =~ s/(![^\.]+)+$//; # Strip RH non-FQDNs
$injection_host =~ s/!\.POSTED.*//; # Strip diagnostic host entry
$injection_host =~ s/.*!//; # Strip all but RH path entry
return reject('Banned injecting news server')
if ($injection_host =~ /news.server.to.ban/i);
Not tested, but would be happy to know if that works.
And maybe to then add to cleanfeed.local as an example!
--
Julien ÉLIE
« La science consiste à passer d'un étonnement à l'autre. » (Aristote)
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)