Discussion Locked

must come from a previous page

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

does anyone know any javascript that requires someone to come from a required page before veiwing a certain page? (one that works on both netscape and ie?)

thanks.

1 reply

by jay eckles

Javascript is the wrong tool for that job. One could easily bypass such a mechanism by simply turning off Javascript.

You could use a server-side program that checks the referrer of a request before displaying the page in question. That still has its faults, but you'll find it infinitely more reliable than a Javascript solution. You could implement this type of server-side program as a CGI in your programming language of choice or as Java Servlet, JSP, ASP, PHP, or whatever you find most useful.

Good luck.

Jay
www.jayeckles.com

This discussion is closed to new replies.