• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Protecting Your Pages

A final step that you can take for your site is to protect the search.asp, results.asp, and profile.asp pages. After all, these pages shouldn't even be accessible by someone who hasn't registered with the system. Because this isn't exactly a high-security Web site, you might not find this necessary. If you choose to protect them, however, it's a very simple process to complete.

1.
Open a page you want to protect, such as profile.asp.

2.
Open the Server Behaviors panel.

3.
Click “+” and Choose Restrict Access To Page from the User Authentication submenu.

4.
Configure the behavior, as seen in Figure 19.17, to restrict access based on username and password.

Figure 19.17. Restrict access to the pages that unauthorized users shouldn't see!


5.
If access is denied, send the user to the login.asp page.

6.
Click OK when finished.

7.
Repeat this process for the other pages (search.asp and results.asp) you want to protect.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint