PHP Classes

FloodDam: Protect a site against abusive number of accesses

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,180 All time: 3,205 This week: 94Up
Version License Categories
flooddam 1.0.0GNU Lesser Genera...Networking, Security


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: 41
All time rank: 155325 in Turkey Turkey
Week rank: 388 Up7 in Turkey Turkey Up

FLOODDAM 1.0.4 -------------------------------------------------------------------------------- FloodDam is a class for protecting a site against an abusive number of accesses. Properties: - Block users which passes the setted time and request limit - Allow / Disallow users with no IP - Configurable maximum request number - Configurable minimum time - Determine IP of users behind proxies - Remove block after setted time Licence: LGPL -------------------------------------------------------------------------------- MURAT ATAY WEB: - EMAIL: PHPCLASSES: FRESHMEAT: - --------------------------------------------------------------------------------
  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  
This week:0
All time:3,205
This week:94Up