On this page
Protected Node Installation and Basics
Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites
Installation
Installing the Protected Node Module installation is as simple as installing most modules:
- Download the tarball from the Drupal.org project page
- Extract the files to sites/all/modules or wherever you keep your contrib modules
- Enable the module in Drupal
- Check the permissions
Permissions
Once the Protected Node module is installed, you can edit access permissions and allow your users to access functionality based on their roles. Detailed instructions can be found on the Protected Node module: Permissions page of this documentation.
Create a Protected Node
Either create a new, or edit an existing node, and open the "Password protect this page" field set. In the field set, select "This page is protected" and enter a password twice. Save, and the node is protected.
Open another browser in incognito mode or log out of Drupal and visit the page you just protected. You should be directed to a form asking you for the password.
See the Protected Node Form section of the Global Settings documentation for details about how to modify the content of the password entry page.
Advanced Settings
A few of the many advanced settings available are:
- Allow anonymous users to create a page with a password
- Prevent a set of users from accessing protected nodes while those allowed can still have to use the password to see the content (when combined with the node privacy by role module)
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion