Re: How to block IP addresses to the whole server?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11 March 2010 14:42, Je suis la poubelle <lapsap7@xxxxxxxxx> 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:-

http://httpd.apache.org/docs/2.2/mod/core.html#directory

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.

-- Phil

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux