---
title: How to Password Protect a DriveHub Module
description: "Do you want to share a gallery or a set of files only with the people who have the password? You can easily do this with **DriveHub**. Password protection puts a small lock screen in front of any module. Your…"
url: "https://sovlix.com/docs/how-to-password-protect-a-drivehub-module/"
updated: "2026-10-07"
category: DriveHub / Module Settings
---

# How to Password Protect a DriveHub Module

Do you want to share a gallery or a set of files only with the people who have the password? You can easily do this with **DriveHub**.

Password protection puts a small lock screen in front of any module. Your clients type the password you gave them, and the files open right on the page. Everyone else only sees the lock screen.

Here is an easy, step-by-step guide to help you set it all up!

## Step 1: Open Your Module

First, open the module you want to protect:

- Go to **DriveHub** > **Modules** from your WP-Admin.
- Find your module in the list (we'll use the **Private Client Gallery** gallery module).
- Click on **Edit** next to it.

[![Opening the Private Client Gallery module from the DriveHub Modules list](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-01-open-module.webp)](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-01-open-module.webp)

## Step 2: Open the Permissions Tab

The password setting lives with the other access rules:

- In the left steps of the module builder, click on **Permissions**.

[![The Permissions step in the DriveHub module builder](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-02-open-permissions.webp)](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-02-open-permissions.webp)

## Step 3: Turn On Password Protection

Scroll down to the **Password Protection** card near the bottom of the tab:

- Turn on the switch at the top right of the **Password Protection** card. The card opens and shows the **Password** field.
- In the **Password** field, type the password you want to share with your visitors.
- Click the eye button next to the field if you want to check what you typed.

[![Turning on Password Protection and typing a password](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-03-enable-password.webp)](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-03-enable-password.webp)

**Tip:** Pick a password that is easy to share but hard to guess, for example a word and a year. You can send it to your clients by email together with the page link.

## Step 4: Save the Module

Your password is not active until you save:

- Click on **Save changes** at the top right of the builder.

[![The Save changes button in the module builder](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-04-save-module.webp)](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-04-save-module.webp)

Don't forget this step. While something is still unsaved, an **Unsaved changes** label shows next to the module name.

## Step 5: Check the Page as a Visitor

Now open the page that shows this module in a private browser window, so you see it the way a visitor does. Instead of the files, visitors see a lock screen with the message **This module is password protected!** and **Enter your password below:**, a password field and an **Unlock** button.

[![The password lock screen visitors see on the Private Gallery page](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-07-password-gate.webp)](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-07-password-gate.webp)

- Type the password into the **Enter password** field.
- Click on **Unlock**.

[![Typing the password and clicking Unlock](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-08-enter-password.webp)](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-08-enter-password.webp)

The page reloads and the module opens with all its files. DriveHub remembers the password in that browser for one day, so your visitor does not have to type it again on every visit. If the password is wrong, a short **Incorrect password** note appears under the field.

[![The Private Client Gallery open after the right password](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-09-unlocked-gallery.webp)](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-09-unlocked-gallery.webp)

## Step 6: Change the Lock Screen Message (Optional)

You can write your own text for the lock screen, for example to tell clients where to find their password. This message is shared by every password protected module on your site:

- Go to **DriveHub** > **Settings**.
- Click on **Security** in the settings menu.

[![Opening the Security settings in DriveHub](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-05-open-security.webp)](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-05-open-security.webp)

- Scroll down to **What a blocked visitor sees** and find **Password Protected Message**.
- Write your message in the editor. You can use headings, bold text and links.
- Click **Save changes** in the bar at the bottom of the screen.

[![The Password Protected Message editor in the Security settings](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-06-password-message.webp)](https://sovlix.com/wp-content/uploads/2026/10/drivehub-password-protect-06-password-message.webp)

And that's it. Your module is now locked, and only people with the password can see your files.

## Benefits of Password Protecting a Module

- **Share with the right people:** Send one password to a client instead of creating user accounts.
- **Works with any module:** Lock a gallery, a file list, an embedded document and more.
- **Your files stay in Google Drive:** Nothing is copied to your Media Library.
- **Friendly for visitors:** One password, one click, and the files open on the same page.
- **Your own words:** Change the lock screen message to match your site.

With **DriveHub** password protection, private files stay private while sharing stays easy.
