Re: Question about blocking IP's
- From: Menno Duursma <menno@xxxxxxxxxxx>
- Date: Sat, 31 Dec 2005 18:18:57 +0100
On Fri, 30 Dec 2005 06:32:58 -0800, nestor_kun wrote:
> And sorry for newbie question. I was playing around with my PC which
> has Vector Linux and Apache installed to it. (Vector Linux is based on
> Slackware, pretty much the same)
[snip]
> Can I simply add the IP addresses to my hosts.deny file?
No, not if like Slack the Vector httpd doesn't have libwrap support.
> It would be the easiest way.
It's still easy - if you install mod_hosts_access :
http://groups.google.nl/group/comp.os.linux.misc/msg/f6dbde211e9919d9
> I'm using Midnight Commander and the editor of that. I understand I
> should leave empty line to end of that file, is that correct?
No. But it shouldn't hurt either.
> Thank you for those who bother to write something useful.
Don't forget to add "HostsAccess On" to /etc/apache/httpd.conf in the
<Directory /> section - and: /etc/rc.d/rc.httpd restart
(You don't have to restart anything after editing /etc/hosts.allow BTW.)
--
-Menno.
.
- References:
- Question about blocking IP's
- From: nestor_kun
- Question about blocking IP's
- Prev by Date: Re: Question about blocking IP's
- Next by Date: Re: Question about blocking IP's
- Previous by thread: Re: Question about blocking IP's
- Next by thread: QoS and shaping
- Index(es):
Relevant Pages
|