Setting the Restrict Access To Page dialog box options
The purpose of this dialog box is to add a server behavior to a page that allows only authorized users to view the page.
To set the dialog box options:
- If you want only users with certain access privileges to view the page, select the Username, Password, and Access Level option and specify the authorization levels for the page.
For example, you can specify that only users with Administrator privileges can view the page by selecting Administrator in the authorization levels list.
To add authorization levels to the list, click Define. In the Define Access Levels list that appears, enter a new authorization level and click the Plus (+) button. Dreamweaver stores the level, saving you from typing it for each page. Make sure you enter strings that exactly match the strings in your user database.
- If you want to set more than one authorization level for a page, Control-click (Windows) or Command-click (Macintosh) the levels in the list.
For example, you can specify that any user with Guest, Member, or Administrator privileges can view the page.
- Specify the page to open if an unauthorized user attempts to open the protected page.
Make sure the page you choose is not itself protected.
- Click OK.
Dreamweaver adds a server behavior that redirects the user to another page if the user attempts to bypass the login page by typing the protected pages URL in a browser, or if the user is logged in but attempts to access the protected page without the proper access privileges.
- Redirecting unauthorized users to another page
- Building a page only authorized users can access