word filter not working

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

HDcel
Posts: 13
Joined: 28 May 2021, 09:25

word filter not working

Postby HDcel » 19 May 2022, 12:06

Hi

I have turned on the words filter to username, room names and public messages in the general tab.

and activated it under the Words Filter tab.

Added some more words.

But doesn't seem to work

I got the flood filter to work fine.
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: word filter not working

Postby Lapo » 20 May 2022, 08:03

Hi,
can you show the content of the black list word file?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
HDcel
Posts: 13
Joined: 28 May 2021, 09:25

Re: word filter not working

Postby HDcel » 20 May 2022, 08:54

(?i:asshole)
(?i:shit)
(?i:fuck)
(?i:son of a bitch)
(?i:sonofabitch)
(?i:shitlover)
(?i:motherfucker)
(?i:fucker)
(?i:assfucker)
(?i:asslicker)
(?i:bastard)
(?i:sex)
(?i:penis)
(?i:cunt)
(?i:username)
(?i:email)
(?i:password)
([f|F][\W]*[u|U][\W]*[c|C][\W]*[k|K][\W]*)
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: word filter not working

Postby Lapo » 20 May 2022, 14:03

HDcel wrote:Hi
I have turned on the words filter to username, room names and public messages in the general tab.

Did you restart SFS2X after the change?

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
HDcel
Posts: 13
Joined: 28 May 2021, 09:25

Re: word filter not working

Postby HDcel » 22 May 2022, 07:54

Yes restarted
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: word filter not working

Postby Lapo » 23 May 2022, 07:38

When you say that it doesn't seem to work, can you be more specific?
What test have you done and what is the outcome?
Have you checked the server side logs for related errors?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
HDcel
Posts: 13
Joined: 28 May 2021, 09:25

Re: word filter not working

Postby HDcel » 24 May 2022, 07:07

I have activate the word filter and added some words in the text file.

When I write the bad words they still appear and a not displayed as *, I do not get any warnings and do not get kicked out.

Not sure how to check the logs.
HDcel
Posts: 13
Joined: 28 May 2021, 09:25

Re: word filter not working

Postby HDcel » 24 May 2022, 07:11

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

Re: word filter not working

Postby Lapo » 24 May 2022, 14:54

Not sure how to check the logs.

The log files are found under SFS2X/logs/
Also under both Windows and macOS you can run the server in the terminal directly and see the logs live, as you interact with the server.

The settings look good. I have copied the words you have posted and created a new local file to use for the Words Filter, activated it using the same settings and tried to login as username "password".

It correctly sends back a LOGIN_ERROR to the client

Code: Select all

Login ERRROR: User name password contains bad words; filtered: ********

Does this at least work for you?

Thanks
p.s. = tested using a vanilla SFS2X 2.18
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 59 guests