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

# Password Protection

> Require a browser username and password for a whole domain or subdomain in hosting-panel.net.

**Password Protection** is a tab on **Domains**, after **GeoIP Blocking**. It sits next to **Domains**, **Subdomains**, **Redirects**, and **GeoIP Blocking**.

Protection is per hostname you select (domain or subdomain) and covers that whole hostname. Visitors get the browser’s HTTP Basic Auth prompt.

Changes apply in **10–15 seconds** (the web server reloads).

The certificate check at `/.well-known/` stays open so HTTPS can still renew.

## Usernames and passwords

* Username: up to **64** characters. Allowed characters are letters, numbers, `.`, `_`, and `-`
* Password: up to **255** characters. Click **Generate** if you want the panel to create one
* There is **no** limit on how many users you add for a domain

## Add password protection

<Steps>
  <Step title="Log in">
    Log in to your hosting panel at [hosting-panel.net](https://hosting-panel.net).
  </Step>

  <Step title="Open Password Protection">
    Go to **Domains**, then **Password Protection**.

    Each row shows **Domain**, **Status** (**On** when protection is active), and **Users**.

    <Frame>
      <img src="https://perfgrid-guides.s3.eu-west-par.io.cloud.ovh.net/T6WrJzgTEn1YfOoKbr0PYbmAl.png" alt="Password Protection tab with domain, On status, user count, and Add Password Protection" style={{ borderRadius: '0.5rem' }} />
    </Frame>
  </Step>

  <Step title="Add Password Protection">
    Click **Add Password Protection**. Set **Source Domain**, **Username**, and **Password**, then click **Create Password Protection**.

    <Frame>
      <img src="https://perfgrid-guides.s3.eu-west-par.io.cloud.ovh.net/MruptCj9VGLV5Zg5GJV6ZDUYV.png" alt="Add password protection form with Source Domain, Username, Password, Generate, and Create Password Protection" style={{ borderRadius: '0.5rem' }} />
    </Frame>
  </Step>
</Steps>

## Manage protection

On the overview, open the **...** menu on a row and click **Manage** to edit that hostname, or **Delete** to remove password protection for it.

<Frame>
  <img src="https://perfgrid-guides.s3.eu-west-par.io.cloud.ovh.net/XQZqVrzO8CEWEyJ8xjJnkEGlR.png" alt="Password Protection row menu with Manage and Delete" style={{ borderRadius: '0.5rem' }} />
</Frame>

**Manage password protection** shows **Password protection for** that hostname.

Use **Require a password to visit this site** to turn protection on or off. The toggle saves on its own. Turning it off does **not** delete the users for that hostname.

<Frame>
  <img src="https://perfgrid-guides.s3.eu-west-par.io.cloud.ovh.net/IQzcKZI3D9J0Hgzaonzl5lk9r.png" alt="Manage password protection with Require a password to visit this site toggle and Users list" style={{ borderRadius: '0.5rem' }} />
</Frame>

## Manage users

Under **Users**, click **Add user**. Set **Username** and **Password**, then click **Add user**. Click **Cancel** to close the modal without adding anyone.

<Frame>
  <img src="https://perfgrid-guides.s3.eu-west-par.io.cloud.ovh.net/KaRDLD7kmhKSX3HNAdVFjoulU.png" alt="Add user modal with Username, Password, Generate, Cancel, and Add user" style={{ borderRadius: '0.5rem' }} />
</Frame>

Open the **...** menu on a user to **Reset password** or **Delete**.

<Frame>
  <img src="https://perfgrid-guides.s3.eu-west-par.io.cloud.ovh.net/oHvXy2ZQfCjjF6rdnTgng0rCB.png" alt="Users row menu with Reset password, Delete, and Add user" style={{ borderRadius: '0.5rem' }} />
</Frame>

Delete asks **Are you sure you want to delete** that username. Click **Delete** or **Cancel**.

<Frame>
  <img src="https://perfgrid-guides.s3.eu-west-par.io.cloud.ovh.net/KDn9VzoDHW9Y6A0Ut5Hc6G4tg.png" alt="Delete user modal with Cancel and Delete" style={{ borderRadius: '0.5rem' }} />
</Frame>

## Related articles

* [GeoIP Blocking](/docs/grid-hosting/domains/block-traffic-by-geoip-or-asn)
* [How do I make a redirect?](/docs/grid-hosting/domains/how-do-i-make-a-redirect)
* [SSL certificate status](/docs/grid-hosting/domains/ssl-certificate-status)
