Firewall Protection

Package:
Firewall Protection
Summary:
Restrict the access to pages based on IP address
Groups:
HTTP, PHP 5, Security
Author:
Petter Kjelkenes
Description:
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.


Powered by Gewgley