Login   Register  
PHP Classes
elePHPant
Icontem

FloodDam: Protect a site against abusive number of accesses

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 (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-09-14 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,126 This week: 1All time: 3,065 This week: 1,393Up
Version License Categories  
flooddam 1.0GNU Lesser General Publ...Networking, Security
Description Author  

This class can be used to protect a site against an abusive number of accesses.

It determines the IP address of each user accessing the site PHP scripts and keeps the access counts stored in distinct files per each IP address.

When the number of accesses from an IP address exceeds a configurable limit, the class exits the current script and the user from the banned address is not served.

The class is able to determine the current user IP address from environments and also attempts to determine the IP address of users behind proxies.

The class may automatically deny access to users when it is not possible to determine their IP addresses.

Picture of Murat Atay
Name: Murat Atay <contact>
Classes: 2 packages by
Country: Turkey Turkey
Age: 32
All time rank: 146325 in Turkey Turkey
Week rank: 1051 Up21 in Turkey Turkey Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file example_en.php Example English Example Page
Accessible without login Plain text file example_tr.php Example Turkish Example Page
Plain text file flooddam.php Class FloodDam Class
Accessible without login Plain text file readme_en.txt Doc. English Documentation
Accessible without login Plain text file readme_tr.txt Doc. Turkish Documentation

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,126All time:3,065
 This week:1This week:1,393Up