• 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, searchresults.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 do, 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 Behavior palette.

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

4.
Configure the behavior, as seen in Figure 18.15, to restrict access based on Username and Password.

Figure 18.15. 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 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