Question about blocking IP's



Greetings all,
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)

I tried to block certain IP address accessing the homepage I'm hosting
with apache. I used IPTABLES for this. But I realized that the effect
was short lasting, even I didn't restart or anything.

So my question is, what is the best way to stop a visitor from certain
IP address to my firewall.

Can I simply add the IP addresses to my hosts.deny file? It would be
the easiest way.
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?

Thank you for those who bother to write something useful.

.



Relevant Pages

  • Re: Question about blocking IPs
    ... And sorry for newbie question. ... I was playing around with my PC which ... has Vector Linux and Apache installed to it. ... IP address to my firewall. ...
    (comp.os.linux.networking)
  • Re: Question about blocking IPs
    ... > And sorry for newbie question. ... I was playing around with my PC which ... > has Vector Linux and Apache installed to it. ... > should leave empty line to end of that file, ...
    (comp.os.linux.networking)
  • Re: Question about blocking IPs
    ... And sorry for newbie question. ... I was playing around with my PC which has Vector Linux and Apache installed to it. ...
    (comp.os.linux.networking)