So I have a set up where the CMS is used on a non public facing server, we have the public facing websites on a couple of sepeate boxes that are load balanced.
Is there a really simple way of making the back office log in page unavailable on the live sites just by adding a simple app setting. Or will i need to do a slightly more complicated switcheroo in the program.cs
I need to be able to do this in 13 and 17.
Last resort would be to shove a redirect in IIS but id like to avoid that if nessasary.
Just wondered if anyone else has manged to do it in a strightforward way.
thread here that covers disabling UseBackOffice and/or UseBackOfficeEndpoints in the program.cs depending on serverrole, or other logic..
Or IIS Rewrite… for /umbraco/ with caveats on autorouted /umbraco/api endpoints used by your front end
Sorry if you aren’t on discord, I can’t give you a https://discord-chats.umbraco.com/ link as the thread is in the archived help-with-umbraco that isn’t syndicated.
There is official guidance here for locking down the backoffice by IP address, but you may still need to allow custom surface controllers etc that use /umbraco. It requires an IIS rewrite rule.
There’s also this package which nay help (but I’ve not used it).