httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Je suis la poubelle <>
Subject Re: [users@httpd] How to block IP addresses to the whole server?
Date Fri, 12 Mar 2010 13:26:38 GMT
On Thu, Mar 11, 2010 at 17:07, Philip Wigg <> wrote:
> On 11 March 2010 14:42, Je suis la poubelle <> wrote:
>>      By going down all those conf files and reading from the web, I
>> understand that I could write
>> deny from a.b.c.d
>> inside every <Directory ...> section I could find in order to block
>> access to IP address a.b.c.d
>>       However, there are quite a lot of <Directory ...> sections in
>> several conf files.  Is there a way to block them all in *one single
>> place/line*, ie to the whole server but not to every individual
>> directory?
> Directives enclosed inside a <Directory> block apply to that directory
> and subdirectories too, so you don't need to change every single
> <Directory> section. See:-

     That's the problem because I have virtual directories (aliases),
and the "directory" it's talking about is, if I understand it
correctly, directory in the disk, not directory in the URL.  Am I

> Try it out and you have problems, clearly describe what you're trying
> to do, what's not working, what your logs say and what configuration
> you currently have.

     I have added an IP address (my home IP address and I'm testing at
work) but it's not blocked.  I've rebooted the whole computer but
still not blocked.  Really strange.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message