public static function isNotPubliclyRoutable(UriInterface $url): bool
    {
        $host = $url->getHost();
        if ('' === $host) {
            return true;
        }

        $hostObject = new Host($host);

        if (!$hostObject->isPubliclyRoutable()) {
            return true;
        }

        $hostContainsDots = substr_count($host, '.');
        if (!$hostContainsDots) {
            return true;
        }

        if ('.' === $host[0] || '.' === $host[-1]) {
            return true;
        }

        return false;
    }