DRUPAL MODULE / ACCESS & IDENTITY

Locker module

Adds a separate sign-in gate for Drupal site previews; it does not protect files accessed through direct URLs.

What it does.

Locker adds a separate session-based sign-in gate in front of a Drupal site. It is designed for previews, white-label development and situations where the team needs to hide the site without configuring HTTP authentication at the server.

Because this gate is separate from a Drupal user account, it can help a team review anonymous-user behavior while access to the site is restricted. The documented interface accepts credentials or a passphrase, with command-line options for locking and unlocking.

Capabilities.

  • Session-based preview access gate
  • Username/password or passphrase configuration
  • Anonymous-user review behind the gate
  • Drush lock and unlock commands

Using the module.

  1. Configure Locker and choose credentials or a passphrase before activating the lock.
  2. Use the documented Drush commands when command-line locking or recovery is needed.
Open the official project

Project notes.

Direct file URLs remain accessible. Locker does not replace Drupal’s own user authentication or server-level protection for files.

Our contribution.

Sponsored and developed the original version.

This records WS’s contribution to this community project, alongside its other contributors. View the organization’s supported projects ↗

Original sources.

Your next chapter

The future doesn’t
build itself.

Bring the ambition.
We’ll bring the people, the agents, and the know-how.