Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to secure the downloads folder form unauthorized access, in web forms I used to use the
<location path="download">
tag what can I use in MVC?

What I have tried:

Google search, read some articles but I did not get a clear answer
Posted
Updated 2-Dec-19 9:49am
Comments
MadMyche 22-Nov-19 13:22pm    
Try dropping a web config into your downloads folder
Mohammad Al Hoss 22-Nov-19 13:23pm    
And use the <location path="download">?
Mohammad Al Hoss 22-Nov-19 14:59pm    
It did not work


<configuration>
<system.web>
<authentication mode="Forms">
<authorization>
<allow users="*">


<location path="~/RtfDocs">
<system.web>
<authorization>
<deny users="?">
<deny users="*">





1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900