I have this upload file structure link localhost:58707/uploads/interaction/5/Chrysanthemum.jpg
I want to deny all the users to access '~/uploads' directly..
So, I put this in my web.config as I see in others questions here:
<location path="~/uploads"> //I've tried '/upload' and 'upload' too.
<system.webServer>
<directoryBrowse enabled="false" />
</system.webServer>
</location>
But it doesn't work. How can I do this?