Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

CHAPTER 7: Security and Membership > Protecting Content

Protecting Content

As well as providing a means to register, authenticate, and administer individual user accounts, the WebMatrix membership system also provides ways to restrict access to areas of the site. In this section, we will see the various ways of achieving this at different levels, both for individual authenticated users and groups.

Restricting to Authenticated Users

The most basic form of content protection is achieved by restricting pages and folders to allow access only to authenticated users. By protecting content in this way, we are not concerned with which account a user is logged in with, only that they are logged in at all.

Page Level Access Restriction

We have already seen an example of page level access restriction in the Changing Passwords section. In the code block at the top of the page are the following lines of code:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial