hostsdeny
hosts.deny is a configuration file used by TCP wrappers (libwrap) on Unix-like systems to control access to services that opt into TCP wrappers. It works in conjunction with the complementary file hosts.allow. Together, these files provide per-service access control by evaluating rules when a client attempts a connection to a wrapped service.
How it works: When a connection request arrives for a wrapped service, the system first checks hosts.allow
Format and syntax: Each line in hosts.deny defines a rule with two lists separated by a colon:
Limitations and notes: TCP wrappers and the hosts.allow/hosts.deny mechanism are considered legacy in many environments. Some
Location: The common locations are /etc/hosts.allow and /etc/hosts.deny. See also TCP wrappers and libwrap.