View Full Version : restricting access (kind of)

07-17-2003, 02:35 AM
hey. just found the site. love it :) anyways my question is how do i make a page only accessable if the user if coming from another page? like i set the page that they have to come from to be able to get into the page. you know what i mean? please help me out. thanks :)

07-17-2003, 07:25 AM
it is possible with javascript but if the user disabled it, they can pass through it.

if (document.referrer!="http://mydomain/somepage.htm") location.href="somepage.htm";

to be more strict, you should use server-side language to check the referrer.