Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Link hidden w/ a button (of sorts)

Status
Not open for further replies.

thelke

MIS
Apr 9, 2002
84
I have a link (w/o too much explanation) that I want a clinet to be able to click on, but NEVER actually see the true text of the link. The ORIGINAL link (ones the client will click on) has a token that is generated thru a console, I then post that link, and it takes them to a secure "project" on an ecommerce site. the link that would be clicked on is never displayed in the address bar, and I want to make it so the client clicking on it cannot, in a manner of speaking, cut and paste this link to be used else where. Can I somehow put this in an include file, run it server side, thru a button or whatever so they cannot see this link, even by viewing the source? What about doing it somehow through SQL? Can someone please help me on this?

Thank you in advance.
 
If they have to have that token to enter the project page, you could save the value in a session variable. Then create a limited ASP page that has case statements to include other files as well as a final case that takes effect if they don't have the session variable set. That final case could have a "Access Denied" type of look to it. If they attempt to type tjhe address into the bar, they don't have the session variable set, so get denied, if they have the session variable set you could have another field (next_action or something like that) that controlled what case they would see or process.
The address is completely safe because they can cut and paste it all they want, without first logging in or passing through your entry page, they will not receive the session variable to see anything beyond access denied.

It would also be possible to use cookies rather than session variables, just make sure you give them a rather short expiration.

-Tarwn ------------ My Little Dictionary ---------
Extreme Programming - (1)Trying to code before my second cup of coffee. (2) While(1){ Ctrl+C; Ctrl+V; }
FAQ - Web-ese for "Forget Asking Questions, I am to busy" :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top