Login   Register  
PHP Classes

Firewall: Accept or deny requests depending on IP address

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

  Author Author  
Picture of Temperini Mirko
Name: Temperini Mirko is available for providing paid consulting. Contact Temperini Mirko .
Packages: 3 Browse all classes by Temperini Mirko Browse all classes by
Country: Italy Italy - PHP jobs in Italy
Age: 37
All time rank: 120543 in Italy Italy
Week rank: 1298 Down47 in Italy Italy Down
Innovation award
Innovation award
Nominee: 2x

  Detailed description   Download Download .zip .tar.gz  
This class can be used to accept or deny requests depending on the user machine IP address.

It can look at the current user IP address and decide to accept or deny the request depending on rules defined in a separate rules file. It can also detect IP addresses behind proxies.

The rules define whether to accept or deny requests from individual IP addresses or whole ranges.

When the current user IP address is denied, it can either redirect the user to another page using Javascript, show a given message, or issue a denied access response header.

  Classes of Temperini Mirko  >  Firewall  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Firewall
Base name: firewall
Description: Accept or deny requests depending on IP address
Version: 1.0
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 1296 users
All time rank: 2697
Week users: 0 users
Week rank: 1813 Equal
  Groups   Rate classes User ratings   Applications   Files Files  

Group folder image Networking Networking protocols, clients and servers View top rated classes
Group folder image HTTP HTTP protocol clients, headers and cookies 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

  Innovation Award  
PHP Programming Innovation award nominee
April 2010
Number 3

Prize: One downloadable copy of PhpED Professional
Some times it is necessary to block the access to users from certain IP addresses for some reason.

This class implements a solution to automate blocking accesses to site users from certain addresses using a simple archive to define the IP and ranges to block.

Manuel Lemos

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
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 example file
Plain text file firewall.class.php Class firewall source code
Accessible without login Plain text file forbidden.tpl Data aa funny blue death screen
Accessible without login Plain text file rules.table Data the rules table

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