Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
exit page for external links
Old 03-18-2005, 10:24 AM exit page for external links
netcrawler's Avatar
Average Talker

Posts: 27
Location: QC, Canada
Trades: 0
Good morning y'all..

What i am trying to achieve with this exit page is to verify the url before going to the exit page.

Meaning on our site there are external and internal links we have a policy now to have a disclaimer page for all external links I have that part working fine the exit.asp is working nice but what I am trying to achieve is somehow when clicking on the link on our site somehow it will grab that URL verify it and if it's a external link it will follow with the disclaimer and if it is a internal link then it will go to that link bypassing the disclaimer.


I have no clue how to achieve this could someone please help me with this please, here is the code for the exit page that is woking nice but we just need to modify it to achieve what I want it to do.

Example of internal sites: www.cadets.ca, www.canada.gc.ca, www.forces.gc.ca


This is the exit_e.asp:


Code:
<%@ Language=VBScript %>
<%
If Request.Querystring("url") <> "" Then
   xsite= Request.Querystring("url")
Else
   'specify a default page to redirect to
   xsite="index.asp"
End If
%>
<html>
<!-- #INCLUDE VIRTUAL="/cadet-incl/detect.asp" -->
<head>
<title>You are now leaving the Cadet's Website.</title>
<meta http-equiv="refresh" content="20; Url=<%=xsite%>">
</head>
<body>
<!-- #include virtual="/incl/exit.asp" -->

</body>
</html>

This is the exit.asp include:

Code:
<% if strLang="e" then %>
<table width="100%" height="100%" valign="middle">
  <tbody>
  <tr>
    <td class="splash">
      <div align="center" valign="middle"> 
<table width="510" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
    <td>
	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="/cadet-images/spl-top-en_cadet.gif" alt="DND logo" width="510" height="53" border="0"></td>
  </tr>
  </table>
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
  <td colspan="2">&nbsp;</td>
   
  </tr>
    <tr>
	<td width="60">&nbsp;</td>
  <td><hr></td>
   
  </tr>
  <tr>
  <td width="60">&nbsp;</td>
    <td width="444"><h3>You are now
    leaving the Cadet site.</h3>
  <p>We not responsible for the quality, accuracy, reliability
or currency of the information contained on external sites.</p>
<p align="left"><a href="<%=xsite%>">Visit this web site now</a> or <a href="javascript:history.go(-1)">go
    back to the Cadet site</a>.</p>
<div align="left">You will automatically be redirected in 20 seconds or you may
  click on one of the links above.</div>
</p></td>
  </tr>
  <tr>
  <td width="60">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
  <td width="60">&nbsp;</td>
    <td><img src="http://www.cadets.ca/cadet-images/canada1_b.gif" alt="Canada logo" width="99" height="36" border="0" align="right"></td>
  </tr>
</table>
</td>
  </tr>
</table>

</div></td></tr></tbody>
</table>
<% Else %>
'
<% End If%>
Thanks alot for all your help..

Last edited by netcrawler; 03-18-2005 at 10:27 AM..
netcrawler is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to exit page for external links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43881 seconds with 12 queries