hosts.allow or hosts.deny are only valid if they refer to the libwrap library

ldd /path/to/binary | grep libwrap #general example
ldd /usr/sbin/sshd | grep libwrap #shows that the sshd refers to libwrap
ldd /usr/sbin/apache2 | grep libwrap #show that apache does not refer to libwrap

i range in allow, hanno sempre la precedenza su quelli in deny /etc/hosts.allow

ALL: 127.0. [::1] # 127.0. range is allowed, as the localhost ipv6 addr
sshd : 192.168.0.5 ]specific IP) 192.168.0. (specific range) EXCEPT 192.168.0.10 #range exceptions

/etc/hosts.deny

ALL: ALL (denying all services to all hosts)