Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Getting around the bad word filter
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

webzone
Starting Member

11 Posts

Posted - 02 February 2004 :  09:22:24  Show Profile
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  Show Profile
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.
Go to Top of Page

webzone
Starting Member

11 Posts

Posted - 02 February 2004 :  10:00:21  Show Profile
Thanks for the suggestion though naughtywor<b></b>d does not work.
Webzone
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 02 February 2004 :  10:08:07  Show Profile
test

I just tested adding naughtywor[b][/b]d to the bad words filter and it works here...
Go to Top of Page

alansmith
Starting Member

USA
5 Posts

Posted - 02 February 2004 :  10:16:52  Show Profile  Visit alansmith's Homepage
Simply adding every permutation of a naughtyword with html code in it is not plausable.

The only solution is to run a version of the text through the naughty word checker after all of the html tags have been removed. This is a rather simple coding change.

http://www.computingfuture.co.uk/send-flowers.html
http://www.clareflorist.co.uk/partner/jump.asp?idaff=350
http://www.computingfuture.net/
http://www.computingfuture.net/internet/
http://www.computingfuture.net/consultancy/
http://www.computingfuture.net/disaster/
http://www.inc-corporation.co.uk/
http://www.inc-corporation.co.uk/inventions/
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 02 February 2004 :  10:20:02  Show Profile
If it's a "rather simple coding change", then you should be able to take care of it, right?
Go to Top of Page

webzone
Starting Member

11 Posts

Posted - 02 February 2004 :  10:21:48  Show Profile
I double checked with test and it definitely does not work on our fourm. Interesting - there must be something different between our forums.
Go to Top of Page

webzone
Starting Member

11 Posts

Posted - 02 February 2004 :  10:24:18  Show Profile
I can see it works in this forum because it changed naughtyword to test in my post above.

Strange.

Webzone
Go to Top of Page

webzone
Starting Member

11 Posts

Posted - 02 February 2004 :  10:30:26  Show Profile
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
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 02 February 2004 :  10:32:59  Show Profile
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.
Go to Top of Page

webzone
Starting Member

11 Posts

Posted - 02 February 2004 :  10:51:57  Show Profile
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
Go to Top of Page

webzone
Starting Member

11 Posts

Posted - 02 February 2004 :  10:54:44  Show Profile
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
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 02 February 2004 :  11:05:02  Show Profile
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]
Go to Top of Page

webzone
Starting Member

11 Posts

Posted - 02 February 2004 :  11:12:43  Show Profile
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
Go to Top of Page

webzone
Starting Member

11 Posts

Posted - 02 February 2004 :  16:30:03  Show Profile
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
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 03 February 2004 :  23:44:16  Show Profile
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07