Login   Register  
PHP Classes
elePHPant
Icontem

sIPb: Block the IP address of undesired HTTP clients

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 (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-04-10 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 943 All time: 3,513 This week: 2,017Up
Version License Categories  
sipb 1.0Free for non-commercial...HTTP, Security
Description Author  

This class can keep track of a list of IP addresses of HTTP clients that are not welcome to access a Web server.

It can start blocking the current user IP address and keep the block for a given period.

The class takes note of the user IP address and the time of the moment when the blocking is started. That information is stored is given file.

The class can also lookup an address in the blocked IP file to determine if it is blocked. Optionally, it may redirect the user to a given page in case the blocking is still up. Otherwise it may delete expired blocks.

Picture of Uwe Stein
Name: Uwe Stein <contact>
Classes: 5 packages by
Country: Germany Germany
Age: 54
All time rank: 35023 in Germany Germany
Week rank: 777 Down36 in Germany Germany Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file blockedIPs Output stores the IP and the timestamp
Accessible without login Plain text file sIPb.conf.php Conf. the conf-inc file
Accessible without login Plain text file sIPb.doc Doc. The documentation
Plain text file sIPb.php Class contains the object class
Accessible without login Plain text file sIPb_Sample.php Example Demo file part 1
Accessible without login Plain text file sIPb_SamplePart2.php Example Target for sIPb_Sample.php
Accessible without login Plain text file sIPb_SamplePart3.php Example Target for sIPb_Sample.php
Accessible without login HTML file ur_blocked.html Example Target for sIPb_Sample.php ( with redirection )

 Version Control Unique User Downloads Download Rankings  
 0%Total:943All time:3,513
 This week:0This week:2,017Up