I am upload the Pdf Files And Save in Folder But any one easily open this folder http://localhost:8748/Lib/Admin/Files/ like that
and see all the uploaded pdf and click any pdf open this pdf
like that
http://localhost:8748/Lib/Admin/Files/Asp.net_Interview_Questions_and_answers.pdf
so this url cannot be open what i can restrict this url plz help me
To the folder add a Web.Config file with following contents and it will restrict access
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.web> <authorization> <deny users ="*" /> </authorization> </system.web> </configuration>
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.