How do I secure images stored in file system in ASP ?

Code with C | Programming: Projects & Source Codes Forums ASP.NET How do I secure images stored in file system in ASP ?

This topic contains 1 reply, has 1 voice, and was last updated by  Abhey 2 years, 5 months ago.

  • Author
    Posts
  • #11167

    WinMan
    Member

    How do I secure images stored in the file system in ASP?

    My images are stored in a folder, images/111.jpg
    and if someone goes to the url, www.example.com/images/111.jpg, I don’t want them to see the picture.
    But I have another page which can get that image and show it on the browser. www.example.com/viewimages.aspx

    I do not have any use the forms authentication of asp so I don’t think I can solve this by adding something like in my web.config file

  • #11168

    Abhey
    Member

    Depending on the web server you’re using surely you can just deny *outside* access to the images/ directory?

You must be logged in to reply to this topic.