PHP Classes

sIPb: Block the IP address of undesired HTTP clients

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 950 All time: 3,790 This week: 673Up
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 (8)  
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 )

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:950
This week:0
All time:3,790
This week:673Up