Developer forum

Forum » CMS - Standard features » Trouble accessing files in Extranet secure folder

Trouble accessing files in Extranet secure folder

Daniel Hollmann

Hi DW.

I have tried to set up a secure folder in Dynamicweb, to have files protected behind login.
I have used these ressources

However, as soon as a disable the “Anonymous Authentication” in IIS, every time I try to access the file, I just get the 401 error.

I can’t see what I’m missing. I have attached the settings I have made in screenshots here.



2024-04-03_09h42_56.png 2024-04-03_09h43_19.png 2024-04-03_09h43_32.png 2024-04-03_09h43_48.png


Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen

Hi Daniel

The entire purpose of the setup is to get a 401 from IIS when you try to access the file directly. You need to use DWSDownload file to access the file using DW permissions:

See this thread as well:

BR Nicolai

Daniel Hollmann

Thanks. I can see that this works. However we want to secure assets, like a video that should be shown in the browser, but we will find a workaround for that :)


You must be logged in to post in the forum