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

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

 



Hi,

     Yeah, I want o blacklist some IP addresses.  I don't have
iptables installed, and I don't want to have it.  Is it possible to
use Apache to block?

     BTW, I've tried the old way of creating a hosts.allow file to
deny, but that didn't work.  No idea why.

     Thanks

On Thu, Mar 11, 2010 at 16:22, j0rn <cmdlime@xxxxxxxxx> wrote:
> Hi / Salut
>
> Seems you just want to defintely blacklist a specific IP address
> So, just remember you also have a firewall :
>
> iptables -A INPUT -s <IP address> -j DROP
>
> cheers
>
>
> On 11/03/2010 15: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?
>>
>>       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@xxxxxxxxxxxxxxxx
>>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>
>>
>
>
> --
> j0rn
> http://nibbles.tuxfamily.org/
>
> ***********************************
>
> Ce  message  et toutes  les  pieces  jointes (ci-apres  le  "message")
> sont  confidentiels   et  etablis  a  l'intention   exclusive  de  ses
> destinataires. Toute  utilisation  ou  diffusion  non   autorisee  est
> interdite. Tout message  electronique  est  susceptible  d'alteration.
> L'expediteur  decline toute  responsabilite  au  titre de  ce  message
> s'il  a  ete  altere,  deforme  ou  falsifie. Si  vous  n'etes  pas le
> destinataire  de ce  message, merci  de le  detruire immediatement  et
> d'avertir l'expediteur.
>
> ***********************************
>
>
>

---------------------------------------------------------------------
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