Login   Register  
PHP Classes
elePHPant
Icontem

IP Blocking Class: Block the access of users from given IP addresses

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 (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-06-10 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 827 This week: 1All time: 3,865 This week: 1,432Up
Version License PHP version Categories  
ip-blocking 0.1GNU General Public Lice...5HTTP, PHP 5, Security
Description Author  

This class can block the access of users from given IP addresses.

It can define a set of IP addresses to be blocked by given individual addresses, an array of addresses or a range of addresses.

The class can check if the current user access is from an address that is meant to be blocked. In that case it issues a HTTP 403 status response and exits the current script.

The class can also log the blocked accesses to a given log file.

Picture of Kreshnik Hasanaj
Name: Kreshnik Hasanaj <contact>
Classes: 2 packages by
Country: Kosovo
Age: ???
All time rank: 19091 in Kosovo
Week rank: 1105 Up1 in Kosovo Equal

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example IP Blocking class example code
Plain text file ipblocker.php Class IP Blocking class

 Version Control Unique User Downloads Download Rankings  
 0%Total:827All time:3,865
 This week:1This week:1,432Up