Copied to clipboard

Flag this post as spam?

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


  • Eddie Foreman 215 posts 288 karma points
    Nov 24, 2010 @ 12:21
    Eddie Foreman
    0

    Restrict media access to member group

    Hi All,

    Wondering if someone could advise on the best way to tackle this.

    The media section of a current site has the following structure, where each product has a zip files sub folder, which will contain one or more zip files.

    Meida
    - Products
    -- Product One
    ---Zip Files
    -----Zip One
    -- Product Two
    ---Zip Files
    -----Zip Two
    ...

    A media picker is used to select a zip file and is displayed via an xslt. A loginview is used to control access to members of a particular group:

                   <asp:LoginView ID="ZipView" runat="server">
    <RoleGroups>
    <asp:RoleGroup Roles="Download Zips">
    <ContentTemplate>
    <umbraco:Macro Alias="GetZips" runat="server"></umbraco:Macro>
    </ContentTemplate>
    </asp:RoleGroup>
    </RoleGroups>
    </asp:LoginView>

    This is working fine, but if a members knows the URL, then they can download the zip file.  I know it may not be possible for a member to guess the URL, but I would like to protect against this.

    Looking at previous posts, a lot of the answers seem to work on adding all protected media to one folder. If possible I would like to use the above structure.

    Any thoughts or ideas would be greatly appreciated.

    Working with Umbraco 4.0.4.2, IIS 7

    Thanks in advance

    Eddie

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Nov 24, 2010 @ 12:55
    Lee Kelleher
    0

    Hi Eddie,

    Have you taken a look at the Protected Media package?  Not 100% about its compatibility with Umbraco v4.5 - but its definitely worth looking at!

    Cheers, Lee.

  • Eddie Foreman 215 posts 288 karma points
    Nov 24, 2010 @ 13:23
    Eddie Foreman
    0

    Hi Lee,

    Thanks for the pointer, just opened a new topic under the project.

    Thanks again

    Eddie

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Mar 25, 2011 @ 10:00
    Richard Soeteman
    2

    Just a post for everyone who is interested.

    I've just released a media protect package, which allows you to protect media in the same simple way as you protect content in Umbraco. No additional configuration needed. Just install the package and it works.

    Check out the projects page for more info and a fully functional trial download.

    Cheers,

    Richard

  • Eddie Foreman 215 posts 288 karma points
    Mar 25, 2011 @ 11:28
    Eddie Foreman
    0

    Hi Richard,

    Nice work, looks like a great package.

    Thanks,

    Eddie

Please Sign in or register to post replies

Write your reply to:

Draft