Copied to clipboard

Flag this post as spam?

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


  • facilemariappan 3 posts 23 karma points
    Dec 21, 2022 @ 10:19
    facilemariappan
    0

    Media file access

    Hello Everyone,

    Good morning/evening,

    I have a query on media libarary files.

    I am accessing media library files like pdf, jpg etc. from another Website/Application to view the files. I can able view the file content.

    I am accessing media file by refering media file path like

    https://myumbraco/media/xxxxxxx/file.jpg

    Meanwhile, I like to restrict the access if any anonymoususer is trying to view the content simply through browser window.

    Please help me on this.

    Thanks in advance.

  • Luuk Peters 85 posts 331 karma points
    Dec 21, 2022 @ 12:28
    Luuk Peters
    0

    By default, there is no such functionality in Umbraco. The media files are simply files on the disk which are served when requested and they cannot be restricted by Umbraco, at least by default.

    There is a (paid) plugin that can do this: https://soetemansoftware.nl/media-protect. In my experience, this plugin does what it's supposed to do and is well maintained.

  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    Dec 21, 2022 @ 13:28
    Huw Reddick
    1

    If you prefer a free solution it is not that difficult to roll your own, here is a good example

    https://our.umbraco.com/forum/using-umbraco-and-getting-started/108979-intercept-all-media-requests

Please Sign in or register to post replies

Write your reply to:

Draft