File: |
IPAddressSubnetSniffer.php |
Role: |
Class source |
Content type: |
text/plain |
Description: |
This class determines whether a given IP address is in a given list of subnets. The idea is to use this determination to allow/deny access to a PHP script based on IP address. Because of the way a particular web environment that I was using was set up, I was unable to use a .htaccess file for this task. I could not find a built-in PHP function or functions to do this task, so this class was built. |
Class: |
IP Address Subnet Sniffer
Determine if an IP address belongs to a subnetwork |
Author: |
By Jeffrey Silverman |
Last change: |
|
Date: |
19 years ago |
Size: |
5,815 bytes |
|
|
|