Hi all,

I have a guestbook on our site and I used this code (which I purposely, did not put all the bad words in on the forum post, to not offend people) to filter out bad words and (I thought) urls from spam.

But, it removes the urls I add, but somehow, somone else is spamming it several times a day?

I did not setup the guestbook, I just added the word filter code to try and slowdown the spam.

The thing I am confused about is that the person who set it up, used a longblob for the comments, which is where the spam is stored. Now I can edit the comments in an HTML form in Admin mode and see for example

[u r l]http://www.yahoo.com[/u r l] (spaces added to show the [ u r l ])

in the "Admin edit" mode, but if I add a comment and put that exact code in, my filter removes it, but obviously, it does not do that with the spammers???

I would appreciate any help here, we do like the format of this guestbook and the site owners do not want to go to a login system. Which is why I tried to add the filter. We have somone editing this guestbook each day, but I just want to "break" the url posts until we can edit them out.

Thanks in advance,
Don

    I'm not entirely understanding what your problem is. Do you have a link the guestbook in question?

      Yes, I wasn't sure if I should post the link publicy or send them privately? I can send the address to anyone who wants to see an example of what I am talking about, I just didn't want any more SPAM, than we are currently getting.

      The problem is, that if I post a comment and try to add a url in the comment, my filter removes the special characters and words like http url, etc.

      But someone else posts a message and either adds a url in the comment or somehow, the guestbook is spammed after the comment is posted, the url shows up.

      Then if I try to edit the "SPAMMED" comment and copy the exact url with code, and add a "new" comment with the copied code and submit it, my filter "removes" the url???

      Does that clear up my problem?

      Thanks
      Don

        Write a Reply...