BadWordsFilter set to true, but still coming through

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
whelman
Posts: 14
Joined: 12 Apr 2006, 11:04

BadWordsFilter set to true, but still coming through

Post by whelman »

We've set our BadWordsFilter paramater to true, but it seemingly has no affect. Is there anything else that needs to be done in the config file? Anyone else experiencing this issue?
Thx.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

A restart is necessary after the config change.
Did you do it?
Lapo
--
gotoAndPlay()
...addicted to flash games
whelman
Posts: 14
Joined: 12 Apr 2006, 11:04

Post by whelman »

Yup. But still nothing.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

The badwords filter works with public messages, user names and room names so if you send a text containing a bad word in your list you should see it filtered and get an admin message based on your settings.

I did a very basic test:
-> started SFS 1.4.0 with the filter turned on
-> Typed "oooh shit!" in the Advanced Chat example
-> got an admin message and the message sent was turned into "oooh ****!"

So, I can't see why it's not working for you.
If you can't make this simple thing work, then I will need to know all the details of your OS, JRE, and config.xml
Lapo
--
gotoAndPlay()
...addicted to flash games
whelman
Posts: 14
Joined: 12 Apr 2006, 11:04

Post by whelman »

OK. Figured it out.
1. It's case sensative.
2. It only filters for other clients, not your own (at least in our implementation, but I think that may be unique to us)

Thx.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

1. It's case sensative.
No, it's not. Bad words are recognized in any case. Example: "ShiT", is recognized.
2. It only filters for other clients, not your own (at least in our implementation, but I think that may be unique to us)
nay, if you are all alone in the chat and type a bad word it will be filtered
Lapo
--
gotoAndPlay()
...addicted to flash games
whelman
Posts: 14
Joined: 12 Apr 2006, 11:04

Post by whelman »

Yes, bad words are still filtered on the server, but our client doesn't show it for the user who is doing the swearing, only others - that's just our implementation.

Does the filter catch partial words? It seems we are getting filtered for words like "assume" because "ass" is a bad word. Is there any way to limit the filtering to entire words?

thx.
mnkyhead
Posts: 13
Joined: 10 May 2006, 14:59
Location: Maine, USA
Contact:

Post by mnkyhead »

It seems we are getting filtered for words like "assume" because "ass" is a bad word. Is there any way to limit the filtering to entire words?
Yea I was going to ask the same question.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Does the filter catch partial words? It seems we are getting filtered for words like "assume" because "ass" is a bad word. Is there any way to limit the filtering to entire words?
I see your problem. This is actually a particular case in which the filter may fail. The filter tries to catch bad words stripping spaces and punctuation in order to be more effective.
It would be probably better to add a flag in the main config file to allow toggling this feature.
I've added this in our to-do list

:)
Lapo
--
gotoAndPlay()
...addicted to flash games
mnkyhead
Posts: 13
Joined: 10 May 2006, 14:59
Location: Maine, USA
Contact:

opps

Post by mnkyhead »

Yea I think the filter needs a little work, I was going through the chat logs, and found this

ZOEY said: it w** *ome lady
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Yep, that's exactly because of the same reason explained above.
By stripping the punctuation, the filter can catch bad words hidden within other characters, like ... _s_h_i_t_ etc...

"Ass" is a very short bad word that can be part of hundreds of other words ("mass", "pass", "passive", "passion" and zillions more...)

Until we add the new flag it's probably recommendable to avoid filtering very short words that can be easily found in other longer words/phrases.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply