How to hide href information in the saved page!

Hello:

I am using jsp page which in turn basically has lot of html codes including "href" code. I don't want to disclose href information upon saving that page from the web.

My jsp page href code as follows:

............................................

<small><a href="<%=link%><%="Customer"%>" class="sortdatalink">Customer</a></small>

.............................................

Here "link" and "Customer" is basically a string which consists of URL information.

Output source of saved page as follows:

................................................

<small><a href=ViewCustomerDetails?URLDest=ViewCustomerDetails&targetSrc=MIL_ENGINE&Step=Step_AccessAccountListSorting&AAListID=0&Sponsor=ALL&otherCrit=&SortCol=Customer class="sortdatalink">Customer</a></small>

...........................................

Here "ViewCustomerDetails?URLDest=ViewCustomerDetails&targetSrc=MIL_ENGINE&Step=Step_AccessAccountListSorting&AAListID=0&Sponsor=ALL&otherCrit=&SortCol=Customer" is the URL information, which I don抰 want to disclose.

Any tip抯 is very much appreciated!!!

[1267 byte] By [mohamed_jaleela] at [2007-10-2 3:56:18]
# 1
You can not.You could send them to a page that redirects to the final location.But then you just need to look at the address bar.Seams a very odd requirement. Why do you want it?
mlka at 2007-7-15 23:17:39 > top of Java-index,Java Essentials,Java Programming...
# 2
I am working on bit old application.Now there is a requirement to stop security loop holes. As such i am implementing the following:-Disable rightclick view to view source-Disable status bar to show nothing about the link-hide href url info if the paged is
mohamed_jaleela at 2007-7-15 23:17:39 > top of Java-index,Java Essentials,Java Programming...
# 3
None of them work.At all.Two are JavaScript, and disablable.
mlka at 2007-7-15 23:17:39 > top of Java-index,Java Essentials,Java Programming...
# 4
Do you have any alternative suggestion to resolve this issue?FYI - I even tried URL rewriting, but it does not help! <small><a href="<%=response.encodeURL(link+"Customer")%>" class="sortdatalink">Customer</a></small>
mohamed_jaleela at 2007-7-15 23:17:39 > top of Java-index,Java Essentials,Java Programming...
# 5

You can't hide your html you have to send it so that they can see the webpage. Its like taking your code uncompiled and cutting out the parts you don't want people to see, it doesn't work.

You could, however, do something like write the whole webpage to display inside a java applet so that you could hide your links inside compiled java... but then anyone viewing your page must have java.

Briganda at 2007-7-15 23:17:39 > top of Java-index,Java Essentials,Java Programming...
# 6

If you don't want people to see that information then don't send it to their browsers.

You could do something like this: store all the URLs in an array or a Map or something in the user's session on the server. Then just write your URL as

href=ViewCustomerDetails?SecretKey=42

where '42' can be mapped to the real URL by the server code.

DrClapa at 2007-7-15 23:17:39 > top of Java-index,Java Essentials,Java Programming...
# 7
You should instead focus on creating a good design so you would render the code that the user is supossed to see harmless, as it should be, instead of doing javascript voodoo garbage that only gets the surfer annoyed
matsebca at 2007-7-15 23:17:39 > top of Java-index,Java Essentials,Java Programming...