[SR-Users] regular expression question

Satish Patel satish.txt at gmail.com
Fri Dec 9 16:04:16 CET 2016

I am trying to block SIP scanner so i am trying to use following logic
only allow "My-UserAgent" and block rest but its throwing error, but
if i use  =~ regular expression which works! why negative match
doesn't work?

if($ua !~ "(My-UserAgent") {
                   xlog("L_INFO","On more scriptkiddie, coming from
$si, blocking");

what could be wrong here?

More information about the sr-users mailing list