View Single Post
Old 10-10-2012, 07:02 PM   PM User | #4
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,645
Thanks: 4
Thanked 2,450 Times in 2,419 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
If I understand your question properly, that is what CIDR could be used for.
You give a CIDR an IP and a subnetmask or CIDR netmask/mask bits, then you ask it if a provided IP is considered valid within that block. This works perfectly for office domains.

I believe CIDR is directly implemented into Apache as well, so you can also use allow/deny overrides and CIDR notation.
Fou-Lu is offline   Reply With Quote