How can I secure files like pdf, exe, zip

Discussion in 'ASP.NET 2.0' started by jackxxx, Jun 15, 2009.

  1. I need to keep people from entering the url to specific files and types into the browser. DiscountASP does not allow a folder outside the root of a website. How can I do this?

    Thank you,
     
  2. They still need to be able to download if authenticated

    I don't want the files to be completly forbiden. I just want anyone not logged in to be locked outof the files.
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    When you say, you want to user to access these file when they are logged in. Do you mean windows authentication or Form Authentication? Do you have an ASP.NET application?
     
  4. Bruce,

    Yes, I have an ASP.net app on DiscountASP I have some files (zip, pdf, exe) in a folder on the site that I want to protect from the outside (people entering the url in the browser and being able to download them. I'm on an IIS6 server and using ASP.NET 2.0

    Does anyone have any suggestions for this? What do people do out there to protect these types of files and still let users of a site login and download them.

    I apprecaite any help with this.
     
  5. Hi,
    The best solution is probably to password protect a compressed archive.
    i.e. I've used ZIP files with password protection since the 80's.
    You can find some good tips here: http://lifehacker.com/
    All the best,
    Mark
     
  6. Is this still an issue for you?
     

Share This Page