How do I make a page reachable through the referral site only?

H

Holmes

Hi all.
I'm building a website for school, and have a login page with accounts for
the class,
but when they login in to the main page, nothing is stopping them from book
marking it and by passing the login page.
I want to make the main page reachable only through the login page, and all
others reachable from the pages where the links were clicked.

I'm using FrontPage 2003 (11.5516.5606)

Thanks alot
 
K

Kevin Spencer

If I understand you correctly, you created a login page that takes a user to
a non-protected page? What kind of a login page is that? I can't hardly
imagine what sort of login page you might have created in the first place,
other than a page that navigates to another page after the user fills out a
form. But that's not useful for anything (as you've noticed)!

Okay, since we know nothing about your existing "login" page, let's start
from scratch. If you want to protect a part of a web site from unauthorized
users, you have 2 possible paths to take:

1. Create a Subweb with unique permission from the parent web, and disallow
anonymous access to the subweb. This requires that each user of the Subweb
have a user account in the ACL (Access Control List) for that directory.
This blanket protects all pages in that subweb from being accessed by anyone
that doesn't log in. It doesn't require a login page, as the login comes
from the web server.

2. Create an ASP (ASP.Net, or some other server-side application programming
technology) login page that sets a Session Cookie when the user logs in.
Each protected page must look for the Session Cookie, and it it isn't there,
redirects to the login page.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Top