miniBB ®  
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
News & Announcements miniBB Support Forums / News & Announcements /   

Badwords addon updated

Author Team
8-)
#1 | Posted: 16 Nov 2005 02:52 | Edited by: Team 
"Bad" words filter 2.0 addon has been updated. It's a bit more advanced now in terms of understanding badwords surrounded by special symbols and punctuation. Still, of course, there's no definite cure for "bad" words in your forums except for constant moderation! This plugin can always be used as an additional automatic moderation helper though.

Author ge1doot
Registered
#2 | Posted: 20 Nov 2005 15:05 
Hi,

Maybe this kind of substitution would improve spam filtering?? (i.e. v|c0din, vic0.d1n, vi@gra, @ssh0le, et cetera..)

....foreach($text as $tk=>$tV){
$tV=str_replace(array("1","!","|","]","[","^"),"i",$tV);
$tV=str_replace("3","e",$tV);
$tV=str_replace("@","a",$tV);
$tV=str_replace("0","o",$tV);
$tV=str_replace("$","s",$tV);
$tV=str_replace(".","",$tV);
$tV=str_replace("_","",$tV);
if($bV==$tV.....

just an idea...

Author Sergei
Team member
#3 | Posted: 23 Nov 2005 01:36 | Edited by: Sergei 
ge1doot
Yep, your suggestion is good in some cases for english/latin alphabet words.

i would write it as follows though:

....
foreach($text as $tk=>$tV){
$tV=str_replace(array("1","!","|","]","[","^"),"i",$tV);
$tV=str_replace(array('3','@','0','$','.','_'),array('e','a','o','s',' ',''),$tV);
if($bV==$tV
....

This "alphabet" can be extended with characters from other languages. Perhaps, in future plugin releases we'll add some customizable symbol/character dictionary.

Thos who wanted to use it now can use this solution now and customize it according to the "bad" words they encounter.


For those who don't understand :) - this will replace symbols used to "hide" badwords in posts with their character substitutes - like @ will be replaced with "a" etc. before checking a word for validity.

Author _Marco
Registered
#4 | Posted: 23 Nov 2005 01:52 
With this plugin, will my emailadress Marco@mymail.org look like Marcoamymail,org ?

_Marco

Author Sergei
Team member
#5 | Posted: 23 Nov 2005 02:05 
_Marco
nope, it acts like that only in case of badwords found, symbol replacements are made only to check if there's a bad word hiding ;)

Author _Marco
Registered
#6 | Posted: 23 Nov 2005 02:14 
Sounds cool :)

_Marco

News & Announcements miniBB Support Forums / News & Announcements / Badwords addon updated Top
Your Reply Click this icon to move up to the quoted message
 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
  Extend your miniBB-forums, attaching the images and files,
get the File and Picture Attachments add-on!
Galleries / Attachments Addon for miniBB