Question
challenging question
Hii, using ASP and MS ACCESS
I am making a page with useful links and I would like to hide the links so
that visitors dont copy my links page into their website
What I tried to do it basically use Request.Querystring and Request.Redirect
I have two pages links.asp and goto.asp
in Links.asp the code is
<table width="450" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td width="25"><a href="goto.asp?gotoKind=1"
target="_blank">ClickBahrain</a></td>
</tr>
<tr>
<td><a href="goto.asp?gotoKind=2">Bahrain Nightlife</a></td>
</tr>
</table>
AND
the code in goto.asp is
<%@LANGUAGE="VBSCRIPT"%>
<%
clickbahrain=Request.QueryString("gotoKind")
%>
<% if clickbahrain="1" then response.Redirect(" http://www.clickbahrain.com")
end if %>
<% if clickbahrain="2" then
response.Redirect(" http://www.bahrainnightlife.com") end if %>
this will hide the link from the users. this works fine but I have to
display more than 450 websites and I want to do this via a database. so how
can i do this
I am making a page with useful links and I would like to hide the links so
that visitors dont copy my links page into their website
What I tried to do it basically use Request.Querystring and Request.Redirect
I have two pages links.asp and goto.asp
in Links.asp the code is
<table width="450" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td width="25"><a href="goto.asp?gotoKind=1"
target="_blank">ClickBahrain</a></td>
</tr>
<tr>
<td><a href="goto.asp?gotoKind=2">Bahrain Nightlife</a></td>
</tr>
</table>
AND
the code in goto.asp is
<%@LANGUAGE="VBSCRIPT"%>
<%
clickbahrain=Request.QueryString("gotoKind")
%>
<% if clickbahrain="1" then response.Redirect(" http://www.clickbahrain.com")
end if %>
<% if clickbahrain="2" then
response.Redirect(" http://www.bahrainnightlife.com") end if %>
this will hide the link from the users. this works fine but I have to
display more than 450 websites and I want to do this via a database. so how
can i do this
