From 27dd56889298b7760613635d88595e7cad73eae0 Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 26 Feb 2014 14:31:39 -0600 Subject: [PATCH] adding sipcli to this one too already been using it on conf.fs.org --- scripts/perl/f-off-friendly-scanner.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/perl/f-off-friendly-scanner.pl b/scripts/perl/f-off-friendly-scanner.pl index 48c0b75083..52b8c25f01 100644 --- a/scripts/perl/f-off-friendly-scanner.pl +++ b/scripts/perl/f-off-friendly-scanner.pl @@ -13,7 +13,7 @@ while ($c->connected()) { my $user_agent = $event->getHeader('user-agent'); my $network_ip = $event->getHeader('network-ip'); - if ($user_agent =~ m/friendly-scanner/) { + if ($user_agent =~ m/(friendly-scanner|sipcli)/i) { system("/sbin/iptables -I INPUT -s $network_ip -j DROP"); - } + } }