Log in

View Full Version : Thread creation rate-limiting hack


mute
02-13-2003, 10:00 PM
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
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
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.


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/showthread.php?s=&threadid=54596

-Kyle