You can only use tcp wrappers if the binary was compiled to support it. Look at these two examples -- the first binary has tcp wrappers support compiled in; the second does not.
w/ tcp wrappers
Code:
%whereis -b sshd
sshd: /usr/sbin/sshd
%ldd /usr/sbin/sshd | grep 'libwrap'
libwrap.so.0 => /usr/lib/libwrap.so.0 (0x00954000)
w/o tcp wrappers
Code:
%whereis -b httpd
httpd: /usr/sbin/httpd.worker /usr/sbin/httpd /etc/httpd /usr/lib/httpd
%ldd /usr/sbin/httpd | grep 'libwrap'
If recompiling Apache web server is not an option (I suspect it isn't), then you'll want to look at blocking the IP address with a host-level packet filtering firewall, or within the Apache config file itself.
What OS/version are you asking about? And what version of httpd?
-------
edit: Just saw this -
Quote:
|
Originally Posted by noir911
I don't want to deny it via iptables or apache.
|
Why is that?