[BNM] .htaccess question / blocking IP range
David Pashley
david at davidpashley.com
Fri Apr 4 13:56:28 BST 2008
On Apr 04, 2008 at 12:44, Jonathan Hirsch praised the llamas by saying:
> > It's because you're doing it wrong. You don't specify a range of
> > addresses using "start - end", you need to use either a full ip
> > address,
> > a partial IP address or a netmask. You would want to do:
> >
> > Deny from 82.99.30.0/25
>
> Aha, thanks David!
>
> Just so I'm clear - what does 0/25 mean exactly? Is that the
> equivalent of 82.99.30.0 - 82.99.30.25 (in which case I'd presumably
> use 82.99.30.2/73) or am I misunderstanding?
>
the /25 means 82.99.30.0 to 82.99.30.127. It's called a CIDR and works
on a bitmask against the IP address. In this case the first 25 bits are
the network and the last 7 bits are the hosts in that network.
http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
--
David Pashley
david at davidpashley.com
Nihil curo de ista tua stulta superstitione.
More information about the BNMlist
mailing list. Powered by Wessex Networks