I have a form for adding a notice to a notice board which is passed to a perl script.
I am constantly being inundated with spam url links on a notice board which I want to stop.
Can anybody tell me how I can check the form $notice for the first occurance of http:// and https:// and www. In order to block these notices.
In PHP I can use:
$pos = strpos($notice, " if ($pos !== false) {
URLs not allowed ;
}
I now need to do the same thing in Perl.
Thanks,
John C
I am constantly being inundated with spam url links on a notice board which I want to stop.
Can anybody tell me how I can check the form $notice for the first occurance of http:// and https:// and www. In order to block these notices.
In PHP I can use:
$pos = strpos($notice, " if ($pos !== false) {
URLs not allowed ;
}
I now need to do the same thing in Perl.
Thanks,
John C