Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Stop an easy loophole for spammers getting around censoring? Details »»
Stop an easy loophole for spammers getting around censoring?
Version: , by 007 007 is offline
Developer Last Online: Apr 2020 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-23-2003 Last Update: Never Installs: 0
 
No support by the author.

Hey I censor a few words. I actually just have them replaced by other words, but some people have quickly figured out how to get past this.

They can simply add [b ] tags in the middle of the word.

Like: Tru[ b][/ b]ck

This still shows up as "Truck" even though this word is supposed to be censored. I don't think this is any way around this but if anyone knows I'd appreciate it.

I know I could just add "Tru[ b][/ b]ck" to my block list, but someone could but as many [ b] tags in there as they wanted, and it would not be regognized as the same word.

There are minors that browse my forums and I try to censor the top few profanities. Any ideas?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-23-2003, 02:29 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vB3 is smart enough for this. Just scan the post for empty tags, although there's no way to stop them in the end. If they keep doing it, warn and ban them.
Reply With Quote
  #3  
Old 03-23-2003, 03:22 PM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

actually, filb's right. you could do something like:

PHP Code:
  $bbcode=str_replace("[b ][ /b]","",$bbcode); 
in the function bbcodeparse2()
Reply With Quote
  #4  
Old 03-23-2003, 03:53 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wouldn't that screw up your bold vbcode tags then?
Reply With Quote
  #5  
Old 03-23-2003, 03:56 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nope, because it just eliminates empty bold tags.

but it's also a bad thing, because then you cant do something like this anymore to describe vb-code:

[high]test[/high]
Reply With Quote
  #6  
Old 03-23-2003, 04:03 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How does vb3.0 handle it?
Reply With Quote
  #7  
Old 03-23-2003, 05:18 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 11:56 AM Xenon said this in Post #5
nope, because it just eliminates empty bold tags.

but it's also a bad thing, because then you cant do something like this anymore to describe vb-code:

[high]test[/high]
I'm not sure what you mean Xenon... Why would you want to do that in the first place?

And that string replace is a good idea, although the only problem is if someone REALLY wanted to, they could do something like this:

vBulletin = vBu[ b][ i][ u][/ b][/ u][/ i]lletin

:ermm: Is there a way to disable vbcode on a per-member basis? Maybe I'll look into that...
Reply With Quote
  #8  
Old 03-23-2003, 05:23 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@boofo: i'm intrested in, too

@006:
[high]test[high] is actually [disable][high]test[high][/disable]
Reply With Quote
  #9  
Old 03-23-2003, 06:00 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh I see. Hmm. Inever thought about that. Well is there a way in PHP to say if X is ANY characters?

I am doing
PHP Code:
$bbcode=str_replace("\[b\]\[\/b\]",""$bbcode); 
but I was thinking in the case of this issue though, what if I was able to use [*(if any characters besides "/" are found here)][/*]

Is something like this possible?

Maybe if certain letters are found in a word in no particular order, then those would trigger the replace? I don't know... :ermm:

How does vB3 handle this? And is there an estimate release time? It's been in it's beta stages for like a year at least.
Reply With Quote
  #10  
Old 03-23-2003, 08:59 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 07:00 AM 006 said this in Post #9
How does vB3 handle this? And is there an estimate release time? It's been in it's beta stages for like a year at least.
Read the announcement in the Announcement forum regarding vB3 updates.

As for this problem - it's a known issue that vB3 addresses. How? Best ask the vB developers at vB.com.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04592 seconds
  • Memory Usage 2,292KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete