vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Thread creation rate-limiting hack (https://vborg.vbsupport.ru/showthread.php?t=48902)

mute 02-13-2003 10:00 PM

Thread creation rate-limiting hack
 
Well, my forum was being spammed by a lot of idiots who felt the need to create a large amount of threads, and generally disrupt the flow of our bb.

I knew I could rate limit their posts, but it wasn't so much the posts that bothered me (they were easily pruned), but the irritation of seeing all those new threads until a mod could delete them all.

I decided to rate-limit it so users could only create a certain number of threads per hour.

Drop me a line if you find this useful or have an problems!

-Kyle

Xenon 02-14-2003 02:01 PM

please enter the installation into a txt file and attach it to your post instead of posting the instructions.

that way pirates can't use your hack

thx

mute 02-14-2003 02:11 PM

all set!

assassingod 02-14-2003 02:19 PM

Cool hack, but im confused;
Is this a limit for a user, or for all users?

mute 02-14-2003 02:28 PM

This applies to all users, except for moderators.

What happens is, these kids register accounts, get validated, wait a little while, then post up a bunch of crap (sometimes several people at a time).

We IP ban and ban accounts, but they are using proxies and yahoo accounts, so as you can imagine, its a bit hard to prevent.

Our board doesn't allow guest posting, and for all we know, any user could potentially could be a "spammer", so I've been forced to limit everyone..

assassingod 02-14-2003 02:35 PM

Cool;
Hehe, this hack is a neat little way to prevent things like that - Thanks

Dean C 02-14-2003 03:48 PM

Sounds like a practical hack. Good idea buddy :)!

- miSt

Sebastian 02-14-2003 05:13 PM

Quote:

Originally posted by Xenon
please enter the installation into a txt file and attach it to your post instead of posting the instructions.

that way pirates can't use your hack

thx

they shouldn't be allowed to see this forum then.

Brad 02-15-2003 03:11 AM

Quote:

Originally posted by Sebastian


they shouldn't be allowed to see this forum then.

We are not ganna go into this again are we? :rolleyes:

Guest can view this forum so they can check out what hacks are out there before they buy vBulletin, so if everyone puts their hacks into .txt/.zip attachments then no one has to worry.

Areku 02-17-2003 11:37 AM

/me licks install!!

mute 02-17-2003 11:51 AM

eww! :laugh:

mute 03-24-2003 05:54 PM

Posted a small change which would fix a stupid bug on my part, it just changes the one line.

PHP Code:

Change

$lastthreads
=$DB_site->query("SELECT dateline FROM thread WHERE dateline > UNIX_TIMESTAMP(NOW())-3600 AND postusername='$bbuserinfo[username]'");

to 
        $lastthreads
=$DB_site->query("SELECT dateline FROM thread WHERE dateline > UNIX_TIMESTAMP(NOW())-3600 AND postusername='".addslashes($bbuserinfo[username])."'"); 


Boofo 03-24-2003 06:21 PM

Excellent idea. Is there a way to add a setting that you can change in the Admin CP? ;)

mute 03-24-2003 06:27 PM

I suppose there is :)

I'll look into how everyone else did it, I took the easy way out because I didn't feel like touching the database at all (aside from adding the template), but I'll see what I can do.

Dean C 03-25-2003 03:47 PM

Here you go Boofo. To work with admin options simply go to forums/admin/setting.php then add a setting to the relevant group - it generates a qury and it allows you to work with a variable which is an option when creating the setting ;)

Then this variable with its value (e.g. 5) can be used throughout every php page which includes global.php :)

Boofo 03-25-2003 10:11 PM

Thanks, Mist. ;)

Dean C 03-26-2003 03:37 PM

Your Welcome Boofo ;)

_ miSt

Mathiau 04-03-2003 07:23 AM

Can this hack be made some people can only post some many times ina CERTAIN forum? as opposed to the entire forum? and have the time extened to say a person can only post twice in 24 hours (from their first post) in Forum A - but can post all they want as often as they want in Forum B?

mute 06-21-2003 07:49 PM

This hack is now obsolete, please check out the new improved version of this hack @ https://vborg.vbsupport.ru/showthrea...threadid=54596

-Kyle


All times are GMT. The time now is 04:46 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.02253 seconds
  • Memory Usage 1,747KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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