# Restricted posts

> Keep some posts out of sight behind a second password, move them in by hand or by site and account rules, and open the restricted part when you need it.

Source: https://crawl-docs.pdhq.win/guide/restricted-posts/
Last updated: 2026-12-02

The restricted part is a second, hidden library. Posts in it do not show in the normal library, its filters or its search, and nothing in the app tells that the restricted part exists until you open it.

It is **off** until you give the server a second password.

## Turn it on

Make a hash for the second password the same way as for your main one (see [Install the server](https://crawl-docs.pdhq.win/guide/install-the-server.md#step-2-make-your-password-s-hash)) and set it as `RESTRICTED_PASSWORD_HASH` in the service's environment, then redeploy. Without it nothing can be opened, and the app answers as if the part did not exist.

## Open it

1. Click the library's search box and type exactly `/restricted`.
2. Choose the suggestion that appears, the restricted part.
3. Enter the second password in the **Password** box and press **Continue**.

**What you should see:** two tabs, **Library** and **Restricted**, and a button to close the restricted part. The unlock lasts as long as the browser is open, and at most 12 hours.

## Move posts in and out

While the part is open:

- On a post, press **Add to restricted** to move it in, and **Unrestrict** to move it back.
- In **Settings**, a **Restricted** card lists rules: websites and accounts whose saves go to the restricted part by themselves.

### Rules

Type a website or an account into **Website or account** and add it, for example:

| You type | What it catches |
| --- | --- |
| `example.com` | That website and its subdomains. |
| `example.com/blog` | Only that part of the website. |
| `x.com/someone` | One account on a social site. |
| `youtube.com/@channel` | One YouTube channel. |
| `reddit.com/r/sub` | One subreddit. |

A social site as a whole cannot be a rule, because everyone's posts there would disappear. It must name an account. `x.com` and `twitter.com` count as one site.

When you add a rule, posts you already saved from it are moved in, and the card tells you how many. New saves from it go straight to the restricted part.

## Sharing a restricted post

A restricted post can only be put into a shared link while the restricted part is open. Once it is in a link it is shared like any other: you chose to share it.

> [!NOTE]
> The restricted part is hidden, not encrypted. Its files sit in the same storage as the others. Anyone with access to your server's storage or database can see them.
