I have a file which I would like to access from my computer using a program, not a browser. But I don't want anyone else to be able to see it. So I want to send a password along with the request.
How do I set the file up to require a password? (Any type of file. Not necessarily a web page which has a codebehind.)
I searched, but all I could find is instructions about setting up login pages. That's not what I want.
EDIT
I see posts like Using HTTP Authentication with a C# WebRequest which use NetworkCredential
- But it seems that to use Basic Authentication, one needs to use a Windows User account. This is not secure. Is there a way to create a password (+ username if needed) only for a specific file or folder ?