PHP Classes
elePHPant
Icontem

sIPb: Block the IP address of undesired HTTP clients

Recommend this page to a friend!
  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 (11 years ago) RSS 2.0 feedNot enough user ratingsTotal: 946 All time: 3,658 This week: 1,174Up
Version License Categories
sipb 1.0Free for non-comm...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

  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:946
This week:0
All time:3,658
This week:1,174Up