Page Access

K

kopper

I want to prevent direct access to a given page by having viewers firs
be directed to a Disclaimer page prior to viewing an Info page...th
viewer must go through Page 1 prior to getting to Page 2. How can
link indicating the viewer has read the dislaimer provide sole acces
to the Info page and will/or can direct URL access to the Info page b
denied? Thanks for any assistance..


-
koppe
 
W

wp

Create an "I Accept" button on your disclaimer with a link to the Info page.
Or just a text hyperlink.
 
M

Mike Mueller

This will only do the link to the page- you need either a
cookie or a session variable, depending on yor requirements
and server

If you want them to view the disclaimer everytime they visit
your site, you would use a session variable. Your
disclaimer would be on a form on an asp page. On accepting
the agreement you would set the variable, eg disclaimer =
true. On the content pages which would require the
disclaimer being accepted, you would put in some asp code to
check if disclaimer = true

If they only need to view the disclaimer once, you would do
the same thing except you would use a cookie instead of the
session variable.

Mike


: Create an "I Accept" button on your disclaimer with a link
to the Info page.
: Or just a text hyperlink.
:
: "kopper" wrote:
:
: >
: > I want to prevent direct access to a given page by
having viewers first
: > be directed to a Disclaimer page prior to viewing an
Info page...the
: > viewer must go through Page 1 prior to getting to Page
2. How can a
: > link indicating the viewer has read the dislaimer
provide sole access
: > to the Info page and will/or can direct URL access to
the Info page be
: > denied? Thanks for any assistance...
: >
: >
: >
: > --
: > kopper
:
------------------------------------------------------------------------
: > Posted via http://www.forum4designers.com
:
------------------------------------------------------------------------
: > View this thread:
http://www.forum4designers.com/message99011.html
: >
: >
 
K

kopper

Thanks...my asking for the creation of a link was likely misleading a
the focus should have been on the necessity of coming through th
Disclaimer page as the only means of access to the Info page. I thin
the following script might do the trick:

<script>
if(document.referrer.indexOf("://") == -1){
location = "index.html"}
</script>

This script will redirect the user to the Disclaimer if they try to ge
to the Info page by typing the URL into their address bar or have th
page bookmarked.

Thanks again...

*Create an "I Accept" button on your disclaimer with a link to th
Info page.
Or just a text hyperlink.


-
koppe
 
Top