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

**URL:** <https://forum.umbraco.com/t/disabling-the-back-office-on-the-public-facing-website-quick-question/8662>\
**Category:** Questions\
**Tags:** v13, v17\
**Created:** [October 16, 2026, 2:41pm UTC](https://forum.umbraco.com/t/disabling-the-back-office-on-the-public-facing-website-quick-question/8662 "2026-10-16T14:41:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephwillis1982nfu](https://forum.umbraco.com/user_avatar/forum.umbraco.com/stephwillis1982nfu/32/6372_2.png) [@stephwillis1982nfu](https://forum.umbraco.com/u/stephwillis1982nfu)\
**Post date:** [October 16, 2026, 2:41pm UTC](https://forum.umbraco.com/t/disabling-the-back-office-on-the-public-facing-website-quick-question/8662/1 "2026-10-16T14:41:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mistyn8](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mistyn8/32/671_2.png) [@mistyn8](https://forum.umbraco.com/u/mistyn8)\
**Post date:** [October 16, 2026, 2:58pm UTC](https://forum.umbraco.com/t/disabling-the-back-office-on-the-public-facing-website-quick-question/8662/4 "2026-10-16T14:58:26Z")

</div>

> **[Discord - Group Chat That’s All Fun & Games](https://discord.com/channels/869656431308189746/1214241162882322462)**
>
> Discord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out.

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/](https://discord-chats.umbraco.com/) link as the thread is in the archived help-with-umbraco that isn’t syndicated. ☹

Also think the docs now also cover some of this…

[Service Registration | CMS | Umbraco Documentation](https://docs.umbraco.com/umbraco-cms/develop-with-umbraco/service-registration#middleware)

---

<div class="post-metadata">

**Author:** ![justin-nevitech](https://forum.umbraco.com/user_avatar/forum.umbraco.com/justin-nevitech/32/6219_2.png) [@justin-nevitech](https://forum.umbraco.com/u/justin-nevitech)\
**Post date:** [October 17, 2026, 7:37pm UTC](https://forum.umbraco.com/t/disabling-the-back-office-on-the-public-facing-website-quick-question/8662/5 "2026-10-17T19:37:15Z")

</div>

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.

> **[Lock Down Access to the Umbraco Folder (IIS) | CMS | Umbraco Documentation](https://docs.umbraco.com/umbraco-cms/run-in-production/security/lock-access-to-umbraco-folder)**
>
> Learn how to restrict access to the /umbraco/ folder by allowlisting IP addresses using IIS URL Rewrite rules.

There’s also this package which nay help (but I’ve not used it).

> **[Request Protect for Umbraco | Umbraco Marketplace](https://marketplace.umbraco.com/package/moriyama.requestprotect.umbraco)**
>
> Request Protect for Umbraco is listed on the official Umbraco Marketplace | Information, links, and install instructions

Justin

---

<div class="post-metadata">

**Author:** ![stephwillis1982nfu](https://forum.umbraco.com/user_avatar/forum.umbraco.com/stephwillis1982nfu/32/6372_2.png) [@stephwillis1982nfu](https://forum.umbraco.com/u/stephwillis1982nfu)\
**Post date:** [October 19, 2026, 7:42am UTC](https://forum.umbraco.com/t/disabling-the-back-office-on-the-public-facing-website-quick-question/8662/6 "2026-10-19T07:42:07Z")

</div>

Thanks Mike, Appreciate it, will take a look.

---

<div class="post-metadata">

**Author:** ![stephwillis1982nfu](https://forum.umbraco.com/user_avatar/forum.umbraco.com/stephwillis1982nfu/32/6372_2.png) [@stephwillis1982nfu](https://forum.umbraco.com/u/stephwillis1982nfu)\
**Post date:** [October 19, 2026, 7:42am UTC](https://forum.umbraco.com/t/disabling-the-back-office-on-the-public-facing-website-quick-question/8662/7 "2026-10-19T07:42:30Z")

</div>

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