> ## Documentation Index
> Fetch the complete documentation index at: https://dub.co/llms.txt
> Use this file to discover all available pages before exploring further.

# How to create password-protected links on Dub?

> Learn how to protect your short links with a password on Dub to prevent unauthorized access.

<Tip>
  This feature is only available on [Pro plans and
  above](https://dub.co/pricing).
</Tip>

Dub's password protection feature is useful when you want to share a link with a group of people and you want to make sure that only the intended recipients can access the link.

In this guide, we will learn how to create password-protected links on Dub.

<Steps>
  <Step title="Create a link">
    First, create a link by clicking on the **Create Link** button on the top right corner of the Dub dashboard.

    Then, enter the destination URL and optionally, a custom short link for it.

    <Frame>
      <img src="https://assets.dub.co/help/dub-link-builder.jpg" alt="Create a link with the Dub link builder" />
    </Frame>
  </Step>

  <Step title="Enter a password">
    To use this feature, click on the **Password** button in the link builder. This will open a new modal **Link Password**.

    Then, enter a password for the link or generate a random one and click on the **Add password** button.

    You can also quickly access the **Link Password** feature by using the keyboard shortcut `P` while in the link builder.

    <Frame>
      <img src="https://assets.dub.co/help/password-section.png" alt="Entering a password for the link" />
    </Frame>

    Then, when you share your link, the user will be prompted to enter a password before they can access the destination URL.

    <Frame>
      <img src="https://assets.dub.co/help/password-protected-page.png" alt="An example of a password-protected page" />
    </Frame>
  </Step>

  <Step title="Pass the password in the URL (optional)">
    Optionally, you can also pass a `pw` query parameter to the link to automatically authenticate and redirect the user to the destination URL.

    Here's an example:

    * Password-protected link: [dub.sh/password](https://dub.sh/password)
    * Password-protected link with the password included in the URL as a query parameter: [dub.sh/password?pw=dub](https://dub.sh/password?pw=dub)
  </Step>

  <Step title="Set a custom logo for the password page (optional)">
    On the [Pro plan](https://dub.co/pricing) and above, you can also set a custom logo for the password page. This is useful if you want to brand the password page with your company's logo.

    Your password page logo is connected to your workspace's logo on Dub. You can set that by following the steps below:

    1. Go to your workspace settings page by clicking on the **Settings** link in the menu bar at the top of your workspace dashboard.
    2. Scroll down to the **Workspace Logo** section and upload your company's logo. We recommend using a square image for the best results.

    <Frame>
      <img src="https://assets.dub.co/help/workspace-logo-section.png" alt="Workspace Logo section" />
    </Frame>

    Once you've set your workspace's logo, your password page will automatically update to use your workspace's logo.

    <Frame>
      <img src="https://assets.dub.co/changelog/improved-password-links.png" alt="Password page with custom logo" />
    </Frame>
  </Step>
</Steps>
