Only site users (and, if the underlying content has restricted access, only users with access to the underlying content) can access content through the link. Therefore, even though the link can be shared with anyone, anyone who is not a site user will be unable to use the link