Login   Register  
PHP Classes

Firewall Protection: Restrict the access to pages based 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 Petter Kjelkenes
Name: Petter Kjelkenes <e-mail contact>
Packages: 9 Browse all classes by Petter Kjelkenes Browse all classes by
Country: Norway Norway - PHP jobs in Norway
Age: 24
All time rank: 6473 in Norway Norway
Week rank: 212 Up1 in Norway Norway Up
Innovation award
Innovation award
Nominee: 2x

  Detailed description   Download Download .zip .tar.gz  
This class can be used to restrict the access to pages based on IP address.

It can check if the IP address of the user computer and compares it to ranges of allowed and forbidden IP addresses.

If the IP address is not in the list of allowed addresses or is in the list in forbidden address, the class throws an exception.

The lists of allowed and forbidden addresses may be defined programmatically or read from a configuration file in XML format.

The class also gives you oppertunity for XXS filtering and SQL injection escaping at a global level so you can be 100% safe and you do not need to escape any data in your script.

Now you also can block all input, this is most not nessecary, but it can be used for emergency and when site is down or if you are just showing static page.

  Classes of Petter Kjelkenes  >  Firewall Protection  >  Download Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Firewall Protection
Base name: firewall-protection
Description: Restrict the access to pages based on IP address
Version: 0.7
PHP version: 5.0
License: GNU Lesser General Public License (LGPL)
All time users: 630 users
All time rank: 4494
Week users: 1 user
Week rank: 1813 Up
  Groups   Rate classes User ratings   Applications   Files Files  

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

  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
Plain text file firewall.class.php Class The firewall class source
Accessible without login Plain text file example.configscript.php Example Config loaded firewall example!
Accessible without login Plain text file example.firewall.php Example Example usage
Accessible without login Plain text file firewallconfig.xml Data Config script

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