This feature is only available for Pro plans and above.
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.
Step 1: 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.
Step 2: Enter a password
Scroll down to the Password Protection section in the link builder and toggle the switch. Then, enter a password for the link.
Then, when you share your link, the user will be prompted to enter a password before they can access the destination URL.
Step 3 (optional): Pass the password in the URL
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
- Password-protected link with the password included in the URL as a query parameter: dub.sh/password?pw=dub
Step 4 (optional): Set a custom logo for the password page
On the Pro plan 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:
- Go to your workspace settings page by clicking on the Settings link in the menu bar at the top of your workspace dashboard.
- Scroll down to the Workspace Logo section and upload your company's logo. We recommend using a square image for the best results.
Once you've set your workspace's logo, your password page will automatically update to use your workspace's logo.