Accessibility
 
Home > Products > UltraDev > Support > Building Common Applications
Dreamweaver UltraDev Icon Macromedia Dreamweaver UltraDev Support Center - Building Common Applications
Restricting page access to authorized users

The last step to password protecting pages is adding the Restrict Access to Page server behavior to individual pages so that only authorized users can access those pages. The server behavior 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.

If you want to give many pages on your site the same access rights, you can copy and paste access rights from one page to another.

Note: The Restrict Access To Page server behavior can only protect HTML pages. It does not protect other site resources such as image files and audio files.

You can add a link to the protected page that lets a user log out and clears any session variables. For more information, see "Logging out users" in Using UltraDev or in Dreamweaver UltraDev Help (Help > Using UltraDev).

To redirect unauthorized users to another page:

1 Open the page you want to protect.
2 In the Server Behaviors panel (Window > Server Behaviors), click the plus (+) button and choose User Authentication > Restrict Access To Page from the pop-up menu.
The Restrict Access To Page dialog box appears.
3 Select the Username and Password option.
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 more information, see "Building a page only authorized users can access" in Using UltraDev or in Dreamweaver UltraDev Help (Help > Using UltraDev).
4 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.
5 Click OK.
To copy and paste a page's access rights to other pages on the site:

1 Open the protected page and select the Restrict Access To Page server behavior listed in the Server Behaviors panel (not the one in the plus (+) pop-up menu).
2 Click the arrow button in the top right corner of the panel and choose Copy from the pop-up menu.
The Restrict Access To Page server behavior is copied to your system's Clipboard.
3 Open another page you want to protect in the same way.
4 In the Server Behaviors panel (Window > Server Behaviors), click the arrow button in the top right corner and choose Paste from the pop-up menu.
5 Repeat steps 3 and 4 for each page you want to protect.
To Table of Contents