Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Redirection question...

Reply
Thread Tools

Redirection question...

 
 
Frank Side Burns
Guest
Posts: n/a
 
      03-23-2005
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.





 
Reply With Quote
 
 
 
 
Steven Burn
Guest
Posts: n/a
 
      03-23-2005
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!

"Frank Side Burns" <> wrote in message news:sdj0e.766007$8l.384854@pd7tw1no...
> 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.
>
>
>
>
>


 
Reply With Quote
 
 
 
 
Frank Side Burns
Guest
Posts: n/a
 
      03-23-2005
Thanks for the ideas. I went with the 'hidden variable' technique...works
fine.



"Frank Side Burns" <> wrote in message
news:sdj0e.766007$8l.384854@pd7tw1no...
> 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.
>
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirection Limit John Firefox 4 07-28-2005 10:47 AM
webcrawle with LWP: how to make redirection work? S Perl 1 01-14-2004 06:51 AM
input redirection MadHatter Perl 6 10-16-2003 04:05 PM
Re: Cisco PIX 6.31 Port Redirection - Not Working Memnoch Cisco 0 07-17-2003 05:22 PM
wccp 3550emi and Cacheflow 800 - transparent caching redirection news.tm.net.my Cisco 0 07-17-2003 02:48 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57