Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Darren Daley 7 posts 87 karma points notactivated
    Jun 16, 2020 @ 10:22
    Darren Daley
    0

    Disable Umbraco backoffice login

    Is there a way to stop everyone from logging into umbraco backoffice temporarily ? I've had a look online and haven't seen anything .

  • Dhanesh Kumar MJ 167 posts 543 karma points MVP 2x c-trib
    Jun 16, 2020 @ 10:37
    Dhanesh Kumar MJ
    100

    Hey Darren

    Disable users or write a redirect rule in web.config for /umbraco

    Regards Dhanesh :)

  • Steve Morgan 1350 posts 4460 karma points c-trib
    Jun 16, 2020 @ 15:04
    Steve Morgan
    1

    Careful with the rewrite rule - you might stop Surface Controllers / ajax calls from working.

  • Shahid Hafiz 9 posts 29 karma points
    Feb 02, 2022 @ 16:18
    Shahid Hafiz
    0

    You can rename the backoffice folder to something else and change the webconfig appSetting to

    It wont disable but they wont know the new name. Its good practice to rename this folder anyway.

  • John Endicott 1 post 73 karma points
    Oct 19, 2022 @ 19:56
    John Endicott
    2

    In Umbraco 10, I was able to accomplish disabling Backoffice by commenting out u.UseBackOfficeEndpoints(); in Startup.cs like so:

    app.UseUmbraco()
        .WithMiddleware(u =>
        {
            u.UseBackOffice();
            u.UseWebsite();
        })
        .WithEndpoints(u =>
        {
            u.UseInstallerEndpoints();
            // u.UseBackOfficeEndpoints();
            u.UseWebsiteEndpoints();
        });
    

    Afterwards, the Backoffice URL will result in 404.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" button below.

    Continue discussion

Please Sign in or register to post replies