How to restrict folder access in asp.net like I don\'t want any other to see my Uploads folder in browser by link http://www.example.com/Uploads
You can do like @klausbyskov mentions, to add 's to the root web.config, like:
or you can add a web.config to the folder where you want to allow/deny access with the following content:
Of course replace the and with you own rules