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.
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.
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.
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
is working on a reply...