Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Hello! I would like to be able to access a password protected directory by
setting the userid and password within my script (HTML/Java Script/Perl - whatever).
I am creating links (on the fly) to the files in the passowrd protected directory
if the user is a valid member (based upon a database lookup). The members'
userid and password IS NOT the same as the userid and password to access the
directory as there are many members - one directory (therefore one userid and
Sure, I could simply create the link as follows provided the member is valid:http://userid:[email protected]/file.html
but then everyone knows the userid and password and can send it to anyone.
Is there an HTTP variable that I can set that tells the server the user is valid?
Something that will simply allow me to create the link as:http://www.domain.com/file.html
Or - is there a way to encrypt the userid and password in the URL?
0 · ·