How do I restrict certain subdomains to be accessible from the localnetwork only?

Original message was deleted