Copied to clipboard

Flag this post as spam?

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


  • Tajamal 69 posts 157 karma points
    Aug 08, 2016 @ 11:29
    Tajamal
    0

    Is there a way to protect published page using umbraco login ?

    I dont need any fancy login page, my objective is to grant access from umbraco UI and gives access to a published page.

  • Dennis Aaen 4451 posts 17940 karma points admin hq c-trib
    Aug 08, 2016 @ 11:33
    Dennis Aaen
    0

    Hi Tajamal,

    What you could consider is to use IP restriction on your page, by using the IIS.

    Try to see this documentation https://technet.microsoft.com/en-us/library/cc730889.aspx

    Hope this helps,

    /Dennis

  • Dennis Aaen 4451 posts 17940 karma points admin hq c-trib
    Aug 08, 2016 @ 11:36
    Dennis Aaen
    0

    If it´s only the Umbraco backoffice you want to restrict then you can use a rewrite rule like this

    <rewrite>
        <rules>
            <!-- Restrict access to Umbraco -->
            <rule name="Restrict access" stopProcessing="true">
                <match url="umbraco(?!/Surface/)(?!/Api/)(?!/api/)(?!/webservices/)" />
                <conditions logicalGrouping="MatchAny" trackAllCaptures="false">
                    <add input="{HTTP_HOST}" pattern="(([^.]+)\.)?admin.example\.com" negate="true" />
                </conditions>
                <action type="Redirect" url="/not-found/" appendQueryString="false" />
            </rule>
        </rules>
    </rewrite>
    

    Hope this helps,

    /Dennis

  • Tajamal 69 posts 157 karma points
    Aug 09, 2016 @ 07:58
    Tajamal
    0

    I had a authentication filter already and added a rule for the page in there and it work.

    The rewrite rule looks good too and I will try that soon.

    Thanks

  • Tajamal 69 posts 157 karma points
    Aug 09, 2016 @ 08:04
    Tajamal
    0
    <add input="http://www.mydomain.com" pattern="(([^.]+)\.)?about/my-admin-page" negate="true" />
    

    do I need any back slash in the pattern (before about) or does it look good. or I could add that in the end of the my host.

Please Sign in or register to post replies

Write your reply to:

Draft