httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Reinhardt" <crypto...@cryptodan.net>
Subject Re: [users@httpd] How to block IP addresses to the whole server?
Date Fri, 12 Mar 2010 04:29:30 GMT

--------------------------------------------------
From: "Je suis la poubelle" <lapsap7@gmail.com>
Sent: 11 March, 2010 14:42
To: <users@httpd.apache.org>
Subject: [users@httpd] How to block IP addresses to the whole server?

>      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?
>
>       TIA
>
> PS: I'm using Ubuntu 4 in which Apache 2.2 is (seemingly) configured
> quite differently from standard one, but I don't think this makes much
> difference.
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

Lapsap7,

Here is a great site:

http://www.blockacountry.com/

It automatically generates a .htaccess file that you can use to block entire 
nations.

I use it, and it works great.

Thanks,
Daniel 


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message