Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Reload Flood Control Details »»
Reload Flood Control
Mod Version: 1.00, by Zzed (Member) Zzed is offline
Developer Last Online: Feb 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (1 vote - 5.00 average) Installs: 8
Released: 06 Sep 2002 Last Update: Never Downloads: 7
Not Supported  

This is a fairly simple hack. I implemented it a couple days ago. And realized
that it had also been requested by scotty back in June.

http://www.vbulletin.org/forum/showt...threadid=40297

This hack limits the number of http requests to 1 request per IP address
per second. It works for both registered users as well as guests. If a users
hits the refresh button more than once per second he will be taken to the
error screen. The hack actually terminates the loading process of the page
in the early stages and prevents the server load from going up. I have
tried the refresh flood with and without this hack. And without the hack
I got the server load to go from 0.7 to about 25 with about 30 people logged
on. With the hack in place, the same refresh flood caused the load to go as high
as 1.2.

This hack requires you to create a new template. And it modifies 2 source
files: global.php and showthread.php.

In admin CP add the following template: error_floodreload
Add the following text to the template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In global.php
Look for the following code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add this code directly above it:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In showthread.php
Look for the following code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace it with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In showthread.php
Look for:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace it with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The reason for the 1 second sleeps is to prevent the error screen from popping up when
the user clicks on the goto newest or goto last post arrows in the forum display.
Those 2 calls end up making a second recursive call to showthread.php which ends up
being within the same 1 second interval of the click itself. This way you are fooling
the flood control so that it wont catch the back to back requests.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Advanced Flood Control akanevsky vBulletin 3.5 Add-ons 33 23 Mar 2011 00:10

  #16  
Old 15 Nov 2002, 01:18
Remi Remi is offline
 
Join Date: Nov 2001
Does this hack work if you block cookies, and if not, how can I force users to enable cookies or they can't brows my board .

Thanks in advance

Last edited by Remi : 15 Nov 2002 at 01:21.
Reply With Quote
  #17  
Old 15 Nov 2002, 12:25
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Real name: Eric
Hmmm, I've got a similar problem to Ghost. I installed this hack, following the steps to the letter, loaded a thread, then pressed F5 repeatedly (in fact, I sat there with my finger on the button for about 10 seconds) and the page still loaded for me - no error message at all.
__________________
Eric J. Moreels
ComiX-Fan Editor/Webmaster
Researcher, Marvel Encyclopedia Vol 2: X-Men
e-mail: webmaster@comixfan.cjb.net
Web: http://www.comixfan.com/xfan/
AIM: XFan2k

My Hacks:
Store Redemption Hack v1.1
QuickStats Hack v1.1

Last edited by X-Fan : 15 Nov 2002 at 12:28.
Reply With Quote
  #18  
Old 21 Mar 2003, 08:11
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
09-06-02 at 04:20 AM Logician said this in Post #2
it's a very good idea and a must have hack especially for people having bandwidth problems. IMO it also fixes the gap someone could exploit by sending too many page requests for a long time and thus making your server busy all the times. It wouldnt be a problem for manual sending but a malicious hacker could always code a script to make it automatically and increase your server load dramatically. So great fix..

One minor issue though: it would prevent users open a few pages at the same time when they come to the site. For example when they make a search, they cant anymore open a few threads at the same time by clicking "Open in new browser windows" link. (which I do a lot!). Of course this is not related to you it's the nature of the hack but maybe setting the second to 0.5 instead of 1 may be a little help for these users...
What would we need to change in this code for the 0.5 setting?
Reply With Quote
  #19  
Old 21 Mar 2003, 08:53
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Real name: Edwin
Since the time of last activity in the session table has a granularity of 1 second, there is not much to do to increase the precision of the time.
Reply With Quote
  #20  
Old 21 Mar 2003, 09:05
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
How was Sinan (Logician) talking about doing it?
Reply With Quote
  #21  
Old 31 Mar 2007, 20:12
Stickers Stickers is offline
 
Join Date: Mar 2007
Hi,

Can you maybe make this also for 3.6.5?

Best regards
Stickers
Reply With Quote
  #22  
Old 31 Mar 2007, 20:22
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Considering Zzed hasnt posted in 2-3 years maybe requesting it instead of bumping a old thread might have been a good idea
Reply With Quote
  #23  
Old 02 Apr 2007, 13:25
Stickers Stickers is offline
 
Join Date: Mar 2007
Good point Zachery
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 04:02.

Layout Options | Width: Wide Color: