On Tue, Dec 31, 2013 at 12:34:58AM +0000, Max B wrote:
% cat >> /etc/hosts.deny
ALL: ALL except your.home.ip.here
Apache isn't usually built with tcpwrappers support, nor is any
other web server I'm aware of. You could do so but I think there are
better solutions depending on what you want to achieve.
If you wanted to block these hosts from polluting logs and are
already running Fail2Ban for that purpose for SSH connections, then
I would use Fail2Ban for that as well.
Cheers,
Andy
--
http://bitfolk.com/ -- No-nonsense VPS hosting