![]() |
|
|
Mod Options |
Reload Flood Control Details »»
|
|||||||||||||||||||||||||||||||||||||
|
This modification is in the archives.
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:
In global.php Look for the following code:
Add this code directly above it:
In showthread.php Look for the following code:
Replace it with
In showthread.php Look for:
Replace it with:
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
No members have liked this post.
|
|||||||||||||||||||||||||||||||||||||
Similar Mod
|
||||
| Mod | Developer | Type | Replies | Last Post |
| Advanced Flood Control | Psionic Vision | vBulletin 3.5 Add-ons | 33 | 23 Mar 2011 00:10 |
|
#16
|
|||
|
|||
|
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 No members have liked this post.
Last edited by Remi : 15 Nov 2002 at 01:21. |
|
#17
|
||||
|
||||
|
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 No members have liked this post.
Last edited by X-Fan : 15 Nov 2002 at 12:28. |
|
#18
|
||||
|
||||
No members have liked this post.
|
|
#19
|
||||
|
||||
|
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.
No members have liked this post.
|
|
#20
|
||||
|
||||
|
How was Sinan (Logician) talking about doing it?
No members have liked this post.
|
|
#21
|
|||
|
|||
|
Hi,
Can you maybe make this also for 3.6.5? Best regards Stickers No members have liked this post.
|
|
#22
|
||||
|
||||
|
Considering Zzed hasnt posted in 2-3 years maybe requesting it instead of bumping a old thread might have been a good idea
![]() No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 17:47.



.

