I've got some files that are not very sensitive. Mostly history files from
email sessions using our contact forms.
I'd like to password protect these files so that if someone happened to get
a link to it, they couldn't start passing it all around for anyone to read,
and I certainly wouldn't want the link to find its way into a Google search!
I've thought about creating a password string that I could hold in the <%
[code] %portion of my .asp pages. Then, if someone tries to open a history
file, they are first prompted for a password. If it matches what is in the
<% [code] %section, they get in.
I just feel like my password is left out in the clear if I include it as
part of the asp code.
Is this way ok, or bad?
Is there a better way?
What is a good, simple way to implement this? If someone knows of an example
application somewhere, I'd be happy to see that link.