This question is somewhat similar to "Unpublishing" a Language from a site
We've built a new site for a client that has 6 languages. The default language is English (en). They want to go live with just the English site, and restrict access to the other languages on content delivery environments. However, their content authors on their CM sites still need to work on these language versions and preview/publish them on the authoring site.
I'm looking for a way to restrict access to these non-english languages without removing them from the web db. My attempt at a quick fix was to replace the LanguageResolver on CD only with a class that forces Context.Language to English. That worked, but the language parts of the url still resolve. So /en/my-page and /de-DE/my-page resolve to the same item. I'd like the non-english language urls to 404.
This will be a temporary measure until they choose to go live with their localized versions so ideally I'd like to be able to remove this easily.
Thanks!