Redirection question...

F

Frank Side Burns

I have a web page (let's call it main.aspx) that must only be accessible
thru another web page in my web application. Users should not be able to
browse directly to 'main.aspx'...they can only be redirected their from
another page on my site. How does one go about doing this?

Thanks for any help.
 
S

Steven Burn

Not fool proof but;

Opt 1;

<%
If Session(Request.ServerVariables("REMOTE_ADDR")) <> True Then
Response.Redirect "theotherpage_URL"
End If
%>

Opt 2;

<%
If Request.ServerVariables("HTTP_REFERER") <> "theotherpage_URL" then
Response.Redirect "theotherpage_URL"
End If
%>

Opt 3: Use cookies (again not fool proof but..... might work)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
 
F

Frank Side Burns

Thanks for the ideas. I went with the 'hidden variable' technique...works
fine.
 

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top