HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

prepend hidden username and password to a link when clicked.
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> Javascript
View previous topic :: View next topic  
Author Message
dcwaits



Joined: 05 Aug 2009
Posts: 3

Posted: Thu Aug 13, 2009 6:05 am     prepend hidden username and password to a link when clicked.  

I use an outside service to display product data sheets on our intranet.
The links are constructed as :

http://outsideservice.com:8080/poster.htm?username=username&password=PASSWORD&upc=68785576060

where the UPC code (last 11 characters) are the only changing value from one product to the next. Building a table with appropriate links was no problem.

The problem:
Now I want to be able to use the service on my public web site. Since the makeup of the link would expose my username and password to the public and to search engines, I need to hide the password part of the actual href="" from the visitors.

The landing page is automatically redirected by the service so they could not pickup the information once they land. I don't need DOD level security, but I would like to hide it from the casual surfer.

How could I enter the first part of the link automatically without exposing it to the user when someone clicks on the table cell containing the UPC code. Could a java script or cgi script do this ? See the sample table code:
<tr><td>Stock Number</td><td>Mfr Part No</td><td>Description</td><td>Qty</td><td>UPC #</td></tr>
<tr><td colspan="5"><a href="#top">TOP OF PAGE</a>&nbsp;&nbsp;&nbsp;&nbsp;<Strong><--- Return to ---> </Strong><a href="/products.aspx">&nbsp;&nbsp;Line Card</a></td></tr><tr><td span class="tbhead" colspan="5" ID="3M"><strong>&nbsp;&nbsp;3M</Strong></span></td></tr>
<tr><td>2130</td><td>N/A</td><td>7.6 OZ FLAME RET.</td><td>9</td><td><a href="http://outsideservice.com:8080/poster.htm?username=USERNAME&password=PASSWORD&upc=05400731401" TARGET="_blank"> 05400731401</a></td></tr>
<tr><td>2135</td><td>N/A</td><td>POTTING KIT</td><td>10</td><td><a href="http://outsideservice.com:8080/poster.htm?username=USERNAME&password=PASSWORD&upc=05400769798" TARGET="_blank"> 05400769798</a></td></tr>
<tr><td>3939</td><td>N/A</td><td>2"X 60 YD.DUCT TAPE</td><td>39</td><td><a href="http://outsideservice.com:8080/poster.htm?username=USERNAME&password=PASSWORD&upc=05113106975" TARGET="_blank"> 05113106975</a></td></tr>
<tr><td>10003</td><td>N/A</td><td>WIRE COMPRESSION CON</td><td>1</td><td><a href="http://outsideservice.com:8080/poster.htm?username=USERNAME&password=PASSWORD&upc=05400712733" TARGET="_blank"> 05400712733</a></td></tr>
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> Javascript
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group