File Security?

bonedoc

Well-known member
Joined
May 4, 2006
Messages
112
Programming Experience
Beginner
I have a folder that I am editing with code. I do not want the user to be able to access this. Is there a way to prevent the openeing of a file...like a property or some wierd compression that only my code will know?
 
Can you clarify a bit? Your looking to store some data in a file that your user wouldn't be able to (easily) get to by hand?

I think that's it, just a bit confused when you mentioned the folder/files.
 
I'm not sure how easy this would be. Event a file system watcher would get it's notification too late. The easiest way i can think of would to hide the folder in some obscure directory. Failing that it may be possible to change the folder so that it opens up something completely different when you double click it.
 
Are you hosting with IIS and if so which version.

You can lock down directories or virtual directories via Username and Password in IIS. A simple way would be to build a folder in the site directory. Disable access to All Users and Anonymous Users. Then setup an account and password that and give permission to that User to the secure folder. Place anything you want to inside that folder and it's secure. Now you can ask the user for Name and Password or set the Name and Password programmatically when you want to access the folder.

This is only one of many ways to secure a folder like you want. Here is a good video describing and showing you pretty much what I just said. I would watch it b/c it may help.
 
Back
Top