PHP Classes

File: IPAddressSubnetSniffer.php

Recommend this page to a friend!
  Classes of Jeffrey Silverman  >  IP Address Subnet Sniffer  >  IPAddressSubnetSniffer.php  
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
Last change:
Date: 14 years ago
Size: 5,815 bytes


You need to be a registered user and login to get this file.

Login Immediately with your account on: