How do we execute this link server side ?

S

Stefan B Rusynko

In an .asp page
<%
If <something> Then
Response.redirect
"http://www.site1.com/ffff/jjjgtr.ph...tt=1&iw=178&ih=198&gt=yes&hj=rn&src=yes&nt=no"
Else
<something else>
End If
%>



| HI! I want to execute a link witch is in JavaScript, How do we execute this
| in asp server side if possible?
|
| Basically I don't want anyone to see this link in the code view.
|
| this is the link code. below---------------
|
| <script TYPE="text/JavaScript" LANGUAGE="JavaScript"
|
src='http://www.site1.com/ffff/jjjgtr.ph...tt=1&iw=178&ih=198&gt=yes&hj=rn&src=yes&nt=no'>
| </script>
|
| Thanks in advance :)
|
|
|
 
J

Jim Buyens

Response.Redirect will work, but it still sends the URL out to the browser,
and that means the visitor can discover it. For example, they can right-click
the resulting page and choose Properties.

Paul, if you realy want to hide this URL from the visitor, you'll need to
put the whole app on one server. If, as you seem to imply, the main page
comes from one server and the pictures come from another, then the browser is
the only point of union. In other words, the browser has to know all the
details of what to request from the second server. And if the browser knows
it, the Web visitor can discover it.

To really secure this information, you would need to "remember" it as
Session variables on the one and only server, and then send an abbreviated
URL out to the browser. Then, when the request comes back in, you would
retrieve the sensitive information from the Session variables.

Alternatively (and something I don't recommend) you could write an ASP.NET
or ASP page that runs on the server that delivers the main page, that
retrieves the picture bits from the picture server, and that retransmits the
picture bits to the browser.

That's about all the advice I can offer. If you need more, you'll have to
describe the application in greater detail.

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
P

paul dallaire

HI! Thanks for the response, It may work as the target server actually
redirects it again server side so if the user does click the properties it
does not show the link. this was added to the server script for security
purposes. I will try it and hope repine.redirect works.

Thanks again :)

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top