Posted by Sandman on 02/27/06 21:59
So, I have this list of valid IP scopes, in the form below. How do I
match if $_SERVER[REMOTE_ADDR] is covered in any of these scopes?
193.11.120.0/21
193.11.128.0/24
193.11.129.0/24
193.11.130.0/24
193.11.131.0/24
First, I don't really know how to interprete the "/24" ending. I am
guessing that "193.11.131.0/24" means "193.11.131.X to 193.11.131.Y"
or something, but what? When that's translated to something useful,
how do I match IP numbers reliably?
Anyone done this?
--
Sandman[.net]
[Back to original message]
|