Click to See Complete Forum and Search --> : Page protection


Tea.Cup
06-01-2003, 07:01 AM
I have a login section with password and all,
I don't want people to bookmark the protected page and go directly to them.

They are in a frame in a frame, how can I protect the page with something like

only is in frame show page else show other page.

Charles
06-01-2003, 07:18 AM
<script type="text/javascript">
<!--
if (self.location == top.location) top.location.replace('http://www.w3.org/')
// -->
</script>

It will not work for about 13% of users, but then no real harm will be done.

Nevermore
06-01-2003, 07:49 AM
You could make the page more secure using a server-side script, e.g. PHP.