Click here to Skip to main content
16,018,496 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
By using the handlers i am able to restrict the anonymous user from access of images through direct URL but i am not able to access the images within application afterlogin .

I want to restrict the user from direct access of my images and PDFs through URL(Like www.test.com/userimage.image1.jpg)

so please tell me what should i do to replicate this issue.
Posted

// assing folder level access right on server file system

// can do using IIS

// or use authontication , authorisation to limit access to folder
 
Share this answer
 
XML
Please  provide me code so that i can implement.
If i am using  authorization and set location tag then handlers is not doing anything because i had set the path of my folder in handler.

 <httpHandlers>
        <add verb="*" path="UserImage/*.jpg" type="MyHttpHandler" />
 </httpHandlers>
 
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