Made to Order Software Corporation Logo

Protected Node Password Fork Feature

Password Fork

The new module allows for a password fork.

This means you can send your users to one specific page, and tell them about a password to use on that one page. Depending on the password, they will be sent to one of several nodes.

This works in a very similar way as the other password form, except that there is no specific destination, and the users need to know any one of the passwords.

The feature uses a specific URL defined as follow:


  • protected_pages=<nid1>,<nid2>,...

This parameter is set to 2 or more node identifiers. All the nodes should be protected nodes.

In case you defined node tokens in the different form messages defined in the global settings of the module, the information from the very first node (<nid1>) will be used.

  • back=<url>

The back parameter is used in exactly the same way as the regular password form. It is the URL used by the Cancel link and if the not set but the Cancel link is always added, then the <front> page is used.


If the destination parameter is defined, the module generates an access denied error.

Known issues

Clearing Sessions

As with single nodes, a user returning once one entered a password that successfully unlocked a page will directly be sent to that page instead of being asked for the password.

In most cases this is great since that way the user doesn't need to re-enter the password over and over again. However, a user who enters the password he knows, then purchases a better version and tries to go back to enter the new password he just purchased... will find himself on the old page without being given a chance to enter the new password.

At this time, I'm not too sure how to fix the problem, except by adding an action in the Rules module and letting you use that action whenever the user purchase a new password.

Global Password

All the nodes specified in the list of nodes to the protected_pages parameter cannot be using the global password. The test to such nodes will always fail. This cannot be fixed since if more than one such node was to be specified, only the first one could be accessed.

However, since you can enter any password in the node, you can very well duplicate the global password in one of the nodes.


password not saved

just installed protect node on a module. the password does not get saved / retained and 'password proted' page does not offer dilogue to enter a pasword, thus unaccessable.

Which version are you using?

Which version are you using? We're not responsible for the Drupal 7.x version...

I am using drupal 6.16 - now

I am using drupal 6.16 -

now I am getting error: Fatal error: Call to undefined function token_replace() in /home2/wnus/public_html/sites/all/modules/protected_node/ on line 106

Undefined token_replace()

That would mean you did not install the token module and I guess I missed checking whether it was installed. I suppose it shouldn't be mandatory.


I'm a bit confused on how to use this module. What I want to do is make specific pages password protected in my website. I've installed it and enabled the module. I am able to edit existing pages and enable the password protect option. But when I test it, my password does not work. The window also request a Username as well as the password. How do I set the Username field? I tried exisiting usernames for my website but none worked.


Re: Installation

The documentation on these pages relate to version 6.x, if you installed a newer version (7.x?) then you may see different things, indeed. If you have a problem I suggest you post on the Drupal website in the project Issues queue. Note that I'm not supporting v7.x.