Tells whether a hostname names the local machine or a local network by convention.
A hostname, in any case, with or without a trailing dot.
True for localhost and names under .localhost, .local or .internal.
localhost
.localhost
.local
.internal
isBlockedHostname('printer.local'); // trueisBlockedHostname('example.com'); // false Copy
isBlockedHostname('printer.local'); // trueisBlockedHostname('example.com'); // false
Tells whether a hostname names the local machine or a local network by convention.