diff --git a/scripts/perl/blacklist.pl b/scripts/perl/blacklist.pl index f434669f36..92fa55efe2 100755 --- a/scripts/perl/blacklist.pl +++ b/scripts/perl/blacklist.pl @@ -17,13 +17,15 @@ my @netblocks = split(/\n/, get("http://www.infiltrated.net/voipabuse/netblocks. print "\n"; foreach $addr (@addresses) { - print " \n"; + next unless $addr =~ m/\d+\.\d+\.\d+\.\d+/; + print " \n"; } print "\n"; print "\n"; foreach $netb (@netblocks) { - print " \n"; + next unless $netb =~ m/\d+\.\d+\.\d+\.\d+/; + print " \n"; } print "\n";