vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   vBIndex shoutbox spam problem (https://vborg.vbsupport.ru/showthread.php?t=68633)

Club3G 08-23-2004 01:16 PM

vBIndex shoutbox spam problem
 
I run VBIndex at http://www.club3g.com, and am having a small issue with trolls filling up my shoutbox with spam and profanity. Users need to be activated to post messages, but the shoutbox is available for unconfirmed/unvalidated users, and there's zero flood control on it.

Last night I had one guy shout over 100 times in a matter of minutes, so disabled the shoutbox altogether.

Is there something out there that can require _activation_ for shouts, as well as flood control?

Thanks much.

AN-net 08-23-2004 02:05 PM

activation of shouts would be redundant since so many are posted in a day but flood control is not

find this in you vbindex php file:
PHP Code:

    $DB_site->query("    ## INSERT NEW SHOUT ##
                        INSERT INTO "
.TABLE_PREFIX."vbindex_shoutbox
                        (shoutid, userid, shout, dateline)
                        VALUES
                        (NULL, '
$bbuserinfo[userid]', '".addslashes(convert_url_to_bbcode($_POST['shout']))."',
                         '"
.TIMENOW."')"); 

change that to:
PHP Code:

    $flood$DB_site->query_first("SELECT dateline FROM ".TABLE_PREFIX."vbindex_shoutbox WHERE userid=".$bbuserinfo['userid']." ORDER BY dateline DESC");
    if((
TIMENOW $flood['dateline'])<= XX)
    {
        eval(
print_standard_error('vbi_shoutflood'));
    }
    else
    {
        
$DB_site->query("    ## INSERT NEW SHOUT ##
                            INSERT INTO "
.TABLE_PREFIX."vbindex_shoutbox
                            (shoutid, userid, shout, dateline)
                            VALUES
                            (NULL, '
$bbuserinfo[userid]', '".addslashes(convert_url_to_bbcode($_POST['shout']))."',
                             '"
.TIMENOW."')");

            
$url "$_SERVER[PHP_SELF]?$session[sessionurl]";
            eval(
print_standard_redirect('redirect_vbi_shoutadded'));
    } 

replace XX with the number of seconds between each shout

you will also have to add a new phrase to front end error messages group in admincp and name it vbi_shoutflood.

In that phrase you can say such things as "You must wait longer before shouting again."

also this hasn't been tested;)

Club3G 08-24-2004 04:10 PM

Hmm, didn't seem to work. :( And as soon as I turned it on, the idiot spammed it full immediately. :mad:

Thank you though =)

AN-net 08-24-2004 04:42 PM

just tested it and it doesnt work, it doesnt even use the redirect which is coded in there, i searched for maybe another insert query but none exists so this is very odd....

Club3G 09-13-2004 12:18 PM

^ A fix for this would be just spiffy. :( Our users are missing it, and I can't turn the thing back on without a flood of profanity.

Club3G 10-26-2004 04:21 PM

Bump :(

Nomadite 06-18-2007 02:21 AM

Wow, this is an old thread...

I'm starting to have the same prob in my forum whereby unregistered users are posting crap and porn/spam links and profanity in the Shoutbox. Is there any way to stop them from being able to access the Shoutbox (v 3.5Gold) if they are not registered users?

Dismounted 06-18-2007 06:17 AM

You said yourself, this is an old thread.....Why don't you post in the shoutbox's release thread?


All times are GMT. The time now is 08: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.01190 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete