Protect a file not folder

Discussion in 'ASP.NET WebServices' started by Bruce, Nov 24, 2004.

  1. Bruce

    Bruce DiscountASP.NET Staff

  2. dt

    dt

    Hi,

    I want to protect some files on my web, not folder. At the same time these files should also be accessible to my clients but I don't want them to download this file, how do I do. This is a .dll file.

    Regards,
    DT
     
  3. dt

    dt

    Poor me!!

    When can I expect this feature then?

    DT
     
  4. Can you be a little more clear on "accessible to my clients but I don't want them to download this file"

    What exactly are you trying to accomplish?


    Mike Reilly, Secretary/Webmaster
    Kiwanis Club of Rancho Penasquitos
    "Serving the Children of the World"
    [email protected]
    (760) 419-7429
     
  5. dt

    dt

    I have a dll file which will be used by the browser to display some graphics. I want to protect this particular dll file from downloading by visitors or any other.

    I hope this is more clear.

    DT
     
  6. Well, since file permissions aren't an option, why don'tyou use some sort of obfuscator to make it harder to decompile after someone downloads it?


    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dotfuscator/dotf3e5x.asp
    http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=926&tabindex=2


    I've never used any of these, so I can't answer any questions about them. Looks like a viable option though.


    Mike Reilly, Secretary/Webmaster
    Kiwanis Club of Rancho Penasquitos
    "Serving the Children of the World"
    [email protected]
    (760) 419-7429
     
  7. You want the files to be accessible to your clients but not downloadable?

    I'm not toally clear but it sounds like you might want to place the DLL into the _database folder (for example, whose files are not downloadable) then load it manually from your .NET code using System.Activator or simialr technique. Is that it?

    /emoticons/confused.gif
     
  8. Bruce

    Bruce DiscountASP.NET Staff

    I am lost. Why is a dll file on your website if you don't want anyone to download it? Is it a .NET dll used by your application?? Where is it currently located?

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  9. dt

    dt

    Yes, it is .NET dll. We are currently working on it. If anyway it can be protected it would be great.

    DT
     
  10. Bruce

    Bruce DiscountASP.NET Staff

    Just put it in the bin directory (that's where .net dll is supposed to be). Once you put it in there, you cannot download it.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page