[BNM] .htaccess question / blocking IP range

Leo Brown leo.brown at acumensystems.net
Fri Apr 4 12:43:06 BST 2008


http://krow.net/dict/subnet.html :)

-----Original Message-----
From: bnmlist-bounces at brightonnewmedia.org
[mailto:bnmlist-bounces at brightonnewmedia.org] On Behalf Of Antony Jones
Sent: 04 April 2008 12:42
To: Brighton New Media
Subject: Re: [BNM] .htaccess question / blocking IP range

> 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

I love CIDR masks, but I have absolutely no idea how to work them out. I
learned once but I forgot again. Has anybody got an easy-to-remember way
of doing it?

Cheers,

Ant

On Fri, 2008-04-04 at 12:28 +0100, David Pashley wrote:
> 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
-- 

BNM Subscribe/Unsubscribe:
http://www.brightonnewmedia.org/options/bnmlist

Archive Search - http://icanhaz.com/bnmarchive

BNM powered by Wessex Networks:
http://www.wessexnetworks.com



More information about the BNMlist mailing list. Powered by Wessex Networks