kernl API
    Preparing search index...

    Function isBlockedHostname

    • Tells whether a hostname names the local machine or a local network by convention.

      Parameters

      • host: string

        A hostname, in any case, with or without a trailing dot.

      Returns boolean

      True for localhost and names under .localhost, .local or .internal.

      isBlockedHostname('printer.local'); // true
      isBlockedHostname('example.com'); // false