PDA

View Full Version : Protect a file not folder


bruce
11-24-2004, 07:37 AM
You cannot do that on our system currently.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

dt
11-24-2004, 10:53 AM
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

dt
11-25-2004, 03:06 AM
Poor me!!

When can I expect this feature then?

DT

bluebeard96
11-25-2004, 06:37 AM
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"
Mike@KiwanisPQ.org
(760) 419-7429

dt
11-25-2004, 06:52 AM
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

bluebeard96
11-25-2004, 07:46 AM
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"
Mike@KiwanisPQ.org
(760) 419-7429

diltonm
11-26-2004, 08:34 AM
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

bruce
11-29-2004, 07:44 AM
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 (http://www.DiscountASP.NET)

dt
11-30-2004, 03:17 AM
Yes, it is .NET dll. We are currently working on it. If anyway it can be protected it would be great.

DT

bruce
11-30-2004, 08:04 AM
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 (http://www.DiscountASP.NET)