Profanity Filter?
wol - January 28, 2003 - 07:17
Is there a profanity filter or a suggested way to set one up? I would prefer not to have to monitor every comment.
Is there a profanity filter or a suggested way to set one up? I would prefer not to have to monitor every comment.
Filter module
It's pretty easy to create filters... I suggest you look at urlfilter.module in contrib, which is simply 3 regular expression replacements wrapped in a filter module.
If it's just for personal use on your site (and you don't mind doing some simple PHP), this should do.
Wouldn't it simply be easier to get a userbase that doesn't swear though?
Profanity Filter
I thought that might be the appropriate place. It shouldn't take too much then.
RE user base. The website deals with tax problems. Enough said?
I've written one...
I've worked out a swearing filter. It queries a table with swearwords and their replacements in it. You can get it from here. It's a bit rough and ready, but it works!
I am filtering profanity. Ki
I am filtering profanity. Kind of...
How?
I installed the "Smileys" module (http://drupal.org/project/smileys). It works by scanning comments and posts for typical smiley faces like :), :/, ;), etc. and replacing that text with a graphic.
So to filter out profanity, I created several more filters for the words I don't want to see.
For instance, I added the word, f***, as an acronym. I am replacing it with a small 1px x 1px transparent .gif. (Actually, I am replacing it with a devilish smiley face, but you get the point.)
The Smiley filter system is kind of filtering out bad words of my choice.
you may use spam module
you may use spam module which allows you to add custom filters.
--------------------------
http://www.kzeng.info
Spam Filter Module
The Spam Filter module does a very good job of this. Easy to customize. You can choose which node types it will scan and also which user roles.
webpurify
I stumbled upon http://www.webpurify.com seems pretty cool.
I've added such a module:
I've added such a module: http://drupal.org/project/webpurify
try this!
I stumbled upon http://www.webpurify.com seems pretty cool.
the wordfilter.module in the
the wordfilter.module in the downloads area can be used for this.