Setting the Restrict Access To Page dialog box options

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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 page’s URL in a browser, or if the user is logged in but attempts to access the protected page without the proper access privileges.

Related topics

  • Redirecting unauthorized users to another page
  • Building a page only authorized users can access

Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly
Building ColdFusion Applications Rapidly
Building ASP.NET Applications Rapidly
Building ASP and JSP Applications Rapidly