View Full Version : How to include userid and password in a hyperlink?
ursillorm
07-05-2003, 03:22 PM
Is it possible to include a userid and password in a hyperlink? I am having a site hosted w/ a host that offers password protection, which comes in the form of a pop up entry box when the URL is requested (htaccess I believe?). I want to be able to send an email to people with a hyperlink and not have them have to enter the userid and password (to save them some trouble) or even to press "enter" on the entry box form.
Willing to do my own reading if someone will point me to a URL.
Thanks in advance.
Bob
<a href="http://username:password@www.thesite.com/thepage.html" title="Click This to Enter Site">Link Text</a>
Bad news to include the password, as that may also appear in referrer logs and backlinks if someone clinks on links within the password protected site that then take them out to other sites.
If you include only the username then the software will only prompt for the password.
<edit>added http:// to example</edit>
.
ursillorm
07-05-2003, 10:46 PM
EDITED:
giz - Fantastic! Worked perfectly - thanks for the edit and spending the time. Appreciate the help.
Bob
ursillorm
07-06-2003, 03:03 AM
giz - see edited post above - thanks for the help.
bob
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.