I added the following rules on iptables, but it does not work.

iptables -A INPUT -j BLACKLIST
iptables -A BLACKLIST -p udp -m udp --dport 5060 -m string --string 'friendly-scanner' --algo bm -m comment --comment 'friendly-scanner' -j DROP

Any suggestions will be appreciated.