Internet Development

Moderators: None (Apply to moderate this forum)
Number of threads: 1024
Number of posts: 1892

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
Hidden URL Posted by CA on 2 Mar 2000 at 11:11 AM
Hello! I would like to be able to access a password protected directory by<br>
setting the userid and password within my script (HTML/Java Script/Perl - whatever).<br>
I am creating links (on the fly) to the files in the passowrd protected directory <br>
if the user is a valid member (based upon a database lookup). The members' <br>
userid and password IS NOT the same as the userid and password to access the<br>
directory as there are many members - one directory (therefore one userid and <br>
password).<br>
<br>
Sure, I could simply create the link as follows provided the member is valid:<br>
<br>
http://userid:password@www.domain.com/file.html<br>
<br>
but then everyone knows the userid and password and can send it to anyone. <br>
Is there an HTTP variable that I can set that tells the server the user is valid?<br>
Something that will simply allow me to create the link as:<br>
<br>
http://www.domain.com/file.html<br>
<br>
Or - is there a way to encrypt the userid and password in the URL?<br>
<br>
Thanks!<br>
CA<br>



Edit Report
Re: Hidden URL Posted by mercman2000 on 19 Mar 2000 at 11:08 PM
While this isn't the most secure way, you might try looking around for the GateKeeper script. it works like this:<br>
<br>
1) prompt user for "password"<br>
<br>
2) Try to access page using:<br>
http://www.theserver.com/directory/password.html<br>
<br>
Where password is what they entered in the box prompt, and the .html (or .htm) is tagged on to the end of it.





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.