in reply to Checking IP's with an IP/mask
Update: added code exampleuse Net::Netmask; $block=new Net::Netmask("10.0.2.0/24"); if ($block->match("192.168.1.2")) { ... }
-><- -><- -><- -><- -><-
All things are Perfect
To every last Flaw
And bound in accord
With Eris's Law
- HBT; The Book of Advice, 1:7
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Checking IP's with an IP/mask
by idnopheq (Chaplain) on Apr 24, 2001 at 14:00 UTC |