...

View Full Version : restricting access (kind of)



alrukus
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 :)

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

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum