Deny direct access to a page

Results 1 to 2 of 2

Thread: Deny direct access to a page

  1. #1
    Jon Guest

    Default Deny direct access to a page

    I have three pages, page1.asp, page2.asp and page3.asp<BR>Page2.asp is accesible from Page1.asp <BR>Page3.asp is accesible from page2.asp<BR><BR>How can I stop the user from typing "page2.asp" or "page3.asp" in the address box of the browser and gain direct access to those pages.<BR>I have a half working solution using ServerVariables("HTTP_REFERER") but there are ways round this.<BR><BR>Can you point me in the right direction please<BR>Thank you in advance<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Deny direct access to a page

    ---page1.asp---<BR>&#060;%session("page") = 1%&#062;<BR><BR>---page2.asp---<BR>&#060;%<BR>if session("page") &#060;&#062; 1 then response.redirect "page1.asp" end if<BR>session("page") = 2<BR>%&#062;<BR><BR>---page3.asp---<BR>&#060;%<BR>if session("page") = 1 then<BR> response.redirect "page1.asp"<BR>end if<BR><BR>if session("page") = 2 then<BR> response.redirect "page2.asp"<BR>end if<BR><BR>session("page") = 3<BR>%&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts