Login   Register  
PHP Classes
elePHPant
Icontem

PHP Block IP Range: Check if IP is in a blacklist or a whitelist

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Robert Mahan
Name: Robert Mahan <contact>
Classes: 1 package by
Country: United States United States
Age: 67
All time rank: 2677337 in United States United States
Week rank: 1749 Up198 in United States United States Up


  Detailed description   Download Download .zip .tar.gz  
This class can check if IP is in a blacklist or a whitelist.

It takes a given IP address and checks if it is not supposed to be block by checking if it is either in a whitelist or it is not in a blacklist.

Both lists are read from distinct text files with the same format to describe the IP addresses to match.

They can specify individual IP addresses or ranges using wildcard patterns or the addresses that start and end of the ranges.

The class can also provide a text message or an integer status value that explain why the given IP address passed or not the checks.

  Classes of Robert Mahan  >  PHP Block IP Range  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Block IP Range
Base name: block-ip-range
Description: Check if IP is in a blacklist or a whitelist
Version: 1.0
PHP version: 5.0
License: GNU Lesser General Public License (LGPL)
All time users: 608 users
All time rank: 4647
Week users: 0 users
Week rank: 1347 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Networking Networking protocols, clients and servers View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Security Security protection and attack detection View top rated classes


  User ratings  
Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Usage Example file
Accessible without login Plain text file Example2.php Example Example testing IPs
Plain text file ipblocklist.class.php Class Class file
Accessible without login Plain text file readme.txt Doc. Documentation
Accessible without login Plain text file _blacklist.dat Data Example file
Accessible without login Plain text file _whitelist.dat Data Example file

Download Download all files: block-ip-range.tar.gz block-ip-range.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.