Hi,

I'm running a simple small website on Drupal 6. I would like to create a single node (an employees only page, with special contact info etc) that is password protected. If this were a static (non CMS site), the simplest way to do this would be to put the page in a separate directory and use an .htaccess file.

How would I do the same thing here?

... or should I:

1) create a user account for all employees
2) redirect them to the employee node when they log in

Thanks,
Ben

Comments

vm’s picture

create a role for employees

then investigate the nodeaccess.module for node level access.

may also want to investigate the organic groups.module where by you can create a group for employees.

kristi wachter’s picture

There are a couple of simpler solutions:

Protected Node is probably the easiest:

"With protected node module the users can restrict the access to a node accessible only with a password they provided when the node was created. On node creation you can set a node protected, supply a password and verify strength of the password(via JavaScript)."

Simple Access is similar to Node Access, but simpler:

"This module allows administrators to make some nodes private and/or editable by certain user roles."

˚ ˚ ˚ ˚ ˚
Kristi Wachter
Drupal consultant, evangelist, and enthusiast

dipen chaudhary’s picture

Watch out when you use different access modules. More than one access control module screw up the site.
Protected node sound interesting.

--------------------------------------------------------
Dipen Chaudhary
www.dipenchaudhary.com

--------------------------------------------------------
Dipen Chaudhary
www.qed42.com ( Drupal development services specialize in social networks and other user generated content platforms )
www.dipenchaudhary.com