Page 1 of 1

SPAM filter

Posted: 15 May 2009, 20:38
by flarb
I think SFS needs a Spam Fitler that works in much the same way as my proposed API access to the profanity filter.

I just got back from LOGIN conference and there was a very interesting presentation on EverQuest II's spam filter. You can get the slides here:

http://nandor.szots.com/

Either I'd like to see this implemented in SmartFox, or it would be cool if a zone plug-in could attach a filter callback that will be automatically run on all chat messages and perhaps return a true or false as to whether the message is allowed to be sent. This callback would receive the user object, room object, and message contents.

Then I could write my own implementation of this spam filter and plug it right in to SmartFox's filtering mechanism. Also this would allow me to plug in that commercial profanity filter as well.

Posted: 19 May 2009, 05:25
by Lapo
Hi flarb,
thanks the slide is very interesting.
Then I could write my own implementation of this spam filter and plug it right in to SmartFox's filtering mechanism. Also this would allow me to plug in that commercial profanity filter as well.
What is preventing you from integrating the filter already? I mean with the current SFS? Private and Public messages can be captured on the server side via events and you can disable the default message filter.

cheers

Posted: 09 Jul 2009, 14:40
by flarb
Oh I thought the chat messages were just passed directly to the user they are addressed to. I haven't looked at that functionality much--I'll check it out!

Posted: 19 Aug 2009, 01:49
by flarb
How do you filter public messages? You can't change the msg parameter in the internaleventobject, can you? All I see is getparam, not setparam. I want to set the text to "*censored*" if I detect profanity or spam.

Posted: 19 Aug 2009, 05:13
by Lapo
The operation requires two steps.

1. capture the event in your handler
2. dispatch the edited message via dispatchPublicMessage()

Part 2 is what you need. Check the asdoc or javadoc based on which language you are using

Posted: 19 Aug 2009, 05:21
by flarb
Yeah I figured it out earlier. Works like a charm!

So please ignore all my nagging requests for spam and custom profanity filters. This works great!

I used that profanity filter from inversionsoft--worked like a charm.

Posted: 19 Aug 2009, 06:48
by Lapo
Excellent