tcpwrappers or, as you’re probably more familiar, the hosts.allow and hosts.deny files
little-known facts better known as
Indeed, I'd heard of hosts.allowed but would have never known that they were part of a package/system called tcpwrappers (which I don't think I've ever heard of).