I am looking for a way to block unauthenticated portal users from making calls to the /_odata/$metadata endpoint. We use OData calls for Authenticated users and because this is enabled in the portal metadata calls can still be made against the metadata by users not logged in.