in reply to How to use tr///

Sorry I should have offered a better explaination.
$value =~ tr/[/url][/[/url] [/g;
The reason I am trying to use the code above is: I have someone abusing one of my web forms. They add lines in the form which include [/url][. So, I was trying to write a bit in my script that picks this up and recognises it as this abuser and stops him from being able to send his spam through my form. I have tried IP blocking but he obviously has a dialup account and it keeps changing his IP address, so the next best thing I could think of was to block him when the script sees this text. If anyone has a better idea on how to stop people from abusing my web forms it would be appreciated. Thank you again.

Replies are listed 'Best First'.
Re^2: How to use tr///
by SheridanCat (Pilgrim) on Dec 17, 2006 at 02:44 UTC
    Did you write this code or did you get it from somewhere on the net? Can you post the code here? The reason I ask is that there are probably other ways to exploit your form and this fix would just be a stopgap.
      Here is a copy of the script as requested.

        That code is full of bugs and security holes. I suggest you try one of the NMS CGI Programs instead; they're not vulnerable to those flaws.