@adcp/sdk API Reference - v10.0.1
    Preparing search index...

    Function isLikelyPrivateUrl

    • Best-effort check that a URL targets a development/private host, without doing a DNS lookup. Matches loopback hostnames (localhost) and any IP literal that isPrivateIp would reject. Public domain names always return false.

      Used by higher layers that need to inherit the operator's "private is OK" trust from a primary probe and propagate it to same-origin chain hops — callers that pass this flag into ssrfSafeFetch should do so only when they've already decided the target origin is trusted.

      Returns false on unparseable inputs.

      Parameters

      • url: string

      Returns boolean