Disabling the back office on the public facing website. - Quick Question

,

Hi You Wonderful People,

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.

Cheers for your help as always

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. :frowning:

Also think the docs now also cover some of this…

Service Registration | CMS | Umbraco Documentation

Hi @stephwillis1982nfu

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).

Justin

Thanks Mike, Appreciate it, will take a look.

Thanks Justin will have a look at this, really appreciate that.