Login   Register  
PHP Classes
elePHPant
Icontem

Flood Blocker: Detect and protect from attempts to flood a site

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-04-16 (9 years ago) RSS 2.0 feedStarStarStar 59%Total: 3,960 This week: 1All time: 724 This week: 1,504Down
Version License Categories  
floodbl 1.0.0GNU General Public Lice...HTTP, Security
Description Author  

This class can be used to detect and protect a Web site from attempts to flood it with too many requests. It also allows to protect the site from automatic downloading many pages or files from the same IP address.

The detection of flood is determine according to a set of parameters indicating the maximal allowed number of requests for the certain time interval. It is possible to set several parameters at once in order to perform more effective protection.

Innovation Award  
PHP Programming Innovation award nominee
April 2005
Number 2


Prize: One book of choice by O'Reilly
The excess of simultaneous accesses to a site that may be happening in a given moment is one of the causes that can make a site run slower or even stop running.

Sometimes the excess of simultaneous accesses may be caused by a single user that is using automated robots to quickly retrieve all the site pages, or even by badly intentioned users that deliberately want to cause harm to the site by flooding it with an excessive number of simultaneous requests.

This class can help minimizing the harm that flood attempts may cause by keeping track of the IP addresses of the users accessing each page. Then it can determine when the users of a certain IP addresses are executing an excessive number of accesses so a block may be established for a given period.

Manuel Lemos
Picture of Vagharshak Tozalakyan
Name: Vagharshak Tozalakyan <contact>
Classes: 28 packages by
Country: Armenia Armenia
Age: 35
All time rank: 61 in Armenia Armenia
Week rank: 21 Down1 in Armenia Armenia Equal
Innovation award
Innovation award
Nominee: 7x

  Files folder image Files  
File Role Description
Plain text file class.floodblocker.php Class Class definition
Accessible without login Plain text file example.php Example Example

 Version Control Unique User Downloads Download Rankings  
 0%Total:3,960All time:724
 This week:1This week:1,504Down
User Ratings User Comments (3)  
 All time
Utility:85%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:-
Examples:86%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:922
 
Very uselful class.
2 years ago (Andrew)
70%StarStarStarStar
I tried the script on my web site and it works great! The HTT...
6 years ago (likos)
70%StarStarStarStar
i using it.
6 years ago (Real Cyrus)
70%StarStarStarStar