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

# Password Protection

> Restrict access to your published designs with password protection

Password protection allows you to restrict access to your published designs.

## How It Works

When password protection is enabled, anyone visiting your published design will see a password prompt. They will need to enter the correct password to view the site. This is useful for:

* Sharing work-in-progress designs with specific clients
* Restricting access to internal prototypes
* Protecting sensitive content before a public launch

## How to Enable Password Protection

<Steps>
  <Step title="Click the Share button">
    Click the **Share** button at the top of the editor, then open the **Privacy** section in the Publish modal.

    <Frame>
      <img src="https://cdn.magicpatterns.com/uploads/bJHaYJMuWVenr9zfQNKVaZ/password.png" alt="Privacy settings in Publish modal" />
    </Frame>
  </Step>

  <Step title="Enable password protection">
    Toggle on **Require password for design preview**. A password input field will appear.
  </Step>

  <Step title="Set your password">
    Enter your desired password and click **Save**. Your published design is now protected.
  </Step>
</Steps>

## Removing Password Protection

To remove password protection:

1. Open the Publish panel and go to **Privacy**
2. Toggle off **Require password for design preview**

## Notes

* Password protection applies to the published version of your design
* The password is not visible after it's been set—you'll need to set a new one if you forget it
* Password protection works with both [Custom Publish URLs](/documentation/publishing/publish-url) and [Custom Domains](/documentation/get-started/custom-domain)
