Author |
Topic |
|
webzone
Starting Member
11 Posts |
Posted - 02 February 2004 : 09:22:24
|
We have some users that have found a way to get around the bad word filter.
To get around the filter they are embedding the bad words with html code eg:
naughtywor[b][/b]d
This is displayed as:
naughtyword
So I have tried entering naughtywor[b][/b]d into the badword filter but it does not work.
I am not sure if there is another solution for the problem or if there would need to be a code change to fix this.
Lino Soccernews |
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 02 February 2004 : 09:32:13
|
since [b][/b] is changed to <b></b>, you would enter it like this: naughtywor<b></b>d (see my post below)
Don't really see any way to easily fix this. If you have users who are getting around the badword filter, perhaps those user accounts should be locked? That's what I would do. |
|
|
webzone
Starting Member
11 Posts |
Posted - 02 February 2004 : 10:00:21
|
Thanks for the suggestion though naughtywor<b></b>d does not work. Webzone
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 02 February 2004 : 10:08:07
|
test
I just tested adding naughtywor[b][/b]d to the bad words filter and it works here... |
|
|
alansmith
Starting Member
USA
5 Posts |
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 02 February 2004 : 10:20:02
|
If it's a "rather simple coding change", then you should be able to take care of it, right? |
|
|
webzone
Starting Member
11 Posts |
Posted - 02 February 2004 : 10:21:48
|
I double checked with test and it definitely does not work on our fourm. Interesting - there must be something different between our forums. |
|
|
webzone
Starting Member
11 Posts |
Posted - 02 February 2004 : 10:24:18
|
I can see it works in this forum because it changed naughtyword to test in my post above.
Strange.
Webzone |
|
|
webzone
Starting Member
11 Posts |
Posted - 02 February 2004 : 10:30:26
|
Ok I have got to the bottom of why it is working in this forum and not in our forum.
Our standard forum configuration is with ALLOW FORUM CODE turned on and ALLOW HTML CODE turned off. With this configuration the naughtyword is not removed.
When I switched ALLOW HTML CODE to on and ALLOW FORUM CODE to off the bad word filter removed the naughtyword.
Webzone |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 02 February 2004 : 10:32:59
|
on this forum, we have Forum Code ON and HTML OFF. This forum is just like the one that can be downloaded, there is nothing different in the way posts are handled. |
|
|
webzone
Starting Member
11 Posts |
Posted - 02 February 2004 : 10:51:57
|
Interesting - more testing - and you are right. I have changed back to FORUM CODE ON and the bad word filter is working.
So this is what I have now found with further testing:
If the naughtyword is entered into the forum before it is entered into the bad word filter then it is not changed.
If the naughtyword is entered into the forum after it is entered into the bad word filter then it is changed.
Now my past experience has been that whenever you enter a phrase into the bad word filter it changes all previously entered identical phrases in the forums ie it looks back. Maybe I am wrong on this but I thought that is what usually occurs. So it seems this lookback does not work for phrases with embedded html.
Webzone |
|
|
webzone
Starting Member
11 Posts |
Posted - 02 February 2004 : 10:54:44
|
Another test and I have confirmed that whenever you enter a phrase into the bad word filter it changes all previously entered identical phrases in the forums ie it looks back.
However this lookback is not working for phrases with embedded html.
Webzone |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 02 February 2004 : 11:05:02
|
for those that are already in messages, you would have to enter it with the HTML equivalent of the Forum Code.
ie. <b></b> instead of [b][/b] |
|
|
webzone
Starting Member
11 Posts |
Posted - 02 February 2004 : 11:12:43
|
I tried that earlier and it did not work.
I shall try again in the morning - its nearly 3am here.
Thanks for you help, much appreciated.
You should all pat yourselves on the back for producing such brilliant forum software.
Webzone |
|
|
webzone
Starting Member
11 Posts |
Posted - 02 February 2004 : 16:30:03
|
Ok I have tried <b></b> instead of [ b][/b] and that definitely does not work. It does not work for both the look back and the look forward.
Webzone |
Edited by - webzone on 03 February 2004 23:43:57 |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 03 February 2004 : 23:44:16
|
everything I posted above, I tested on this forum and it worked for me.
With the amount of combinations that you would have to enter for each word, you should really go with your "rather simple coding change" that you mentioned above. |
|
|
|
Topic |
|