# Who can open the site

A new site on BitHut opens only with a password. You decide when, and whether, everyone can see it. This page explains the choices and where to change them.

## Closed until you decide

Right after the first deploy, the site asks visitors for its password. BitHut asks you once who can open it:

- **In the cabinet,** the project's overview shows "Your site is online. Who can open it?" with two choices: "Only people with the password" and "Everyone". The site stays closed until you answer.
- **Through your AI,** the deploy result tells the AI to ask you the same question. It then does what you answer.

Your AI does not open a site to everyone on its own. "Put it online" or "publish it" means deploy it, not open it. To open a site, say so plainly: "Open my site to everyone".

## Where to see the password

The password is in the cabinet: open the project, then **Settings**, section "Who can open the site". It is hidden until you press the eye icon; the copy icon copies it. Your AI never receives the password.

Visitors enter the password on a BitHut page. Their browser remembers it on that device for 30 days. A script or another service can open the site by sending the password as basic authentication with the username `bithut`.

## Changing who can open it

In **Settings**, section "Who can open the site":

- "Open it to everyone" removes the password. Anyone with the address sees the site.
- "Close it with a password" brings the password back for everyone.

You can change this any time, or ask your AI to do it.

## Leaving some pages open

Sometimes one page must open without the password while the rest stays closed: a contact form for clients, or a webhook another service calls (a webhook is an address a service like Stripe or Telegram sends messages to).

1. In **Settings**, open "Leave some pages open to everyone".
2. Write the end of the page address, one per line. For `https://my-site-anna.up.bithut.app/lead`, write `/lead`.
3. Press "Save open pages".

What to know:

- A path also opens what is under it: `/lead` opens `/lead/thanks` too.
- A site can have up to 10 open paths.
- If the site is open to everyone, the list is kept for when it is closed again.

## Checking who reached the site

"See who visited recently" in **Settings** lists the last requests: time, path and what the site answered. A request with the status 401 came without the password. If that was a service that must reach the site, leave its path open.

For your AI: `set_public`, `set_open_paths`, `request_log`.
