# Share links

Make a page Public or Secret, copy its link for your players, and review everything you have shared on the Shared page.

## Visibility

Every page has one of three visibilities. To change it, open the page and click the **Share** button at the top right. Its icon shows the page's current visibility.

| Visibility  | Who can open it | Listed in the player nav |
| ----------- | --------------- | ------------------------ |
| **Public**  | Anyone with the link | Yes |
| **Secret**  | Anyone with the link | No |
| **Private** | You, and any [co-GM](https://dunjii.com/docs/sharing/co-gms.md) who holds the page's folder | No |

New pages are Private. Dunjii saves your choice as soon as you click it, so the link works for players straight away.

![The Share menu on a Public handout.](https://dunjii.com/docs-assets/sharing/share-menu.webp)

## In the file

Visibility is stored in two frontmatter keys. The **Share** menu writes them, and you can also type them in the page's source.

```markdown
---
audience: players
playerNav: false
---
```

- `audience: players`: Players can open this page. Without this key, or with audience: dm, the page is Private.
- `playerNav: false`: Makes the page Secret: players can open it by link, and the nav does not list it. Leave it out for Public.

## Copying the link

The **Share** menu has a **Copy Public Link** or **Copy Secret Link** button, depending on the page's visibility. The button is disabled while the page is Private.

A link has the form `https://share.dunjii.com/<handle>/<workspace>/<folder>/<page>`. It contains the page's folder and name, so if you rename or move the page, the old link stops working. Copy the new one from the **Share** menu.

Players open the link in any browser, with no account. See [What players see](https://dunjii.com/docs/sharing/what-players-see.md).

## Folders

A folder has no visibility of its own. Each page in it has its own visibility, and a page you create in a folder starts Private, whatever is already shared there. To share a folder of handouts, make each page Public.

The player nav lists a folder when it holds at least one Public page, in it or in any folder below it, and shows only the Public pages inside.

In a folder's contents list, each shared page has a **PUBLIC** or **SECRET** tag.

![The contents of a handouts folder with one Secret page and two Public pages.](https://dunjii.com/docs-assets/sharing/folder-visibility-badges.webp)

## The Shared page

**Shared** in the sidebar opens a list of every Public and Secret page in your workspace, grouped by top-level folder. The counts at the top give the number of public and secret pages.

Each row has:

- The page's visibility icon. Click it to change the visibility.
- The page's path, type and when it last changed.
- **Copy player link**, which copies the same link as the **Share** menu.
- **Open as a player**, which opens the page in a new tab as a player sees it.

When you have 8 or more shared pages, a **Filter shared pages** box appears, with **All**, **In the player nav** and **Link only** filters.

![The Shared page with three handouts and one page from the Mistwood campaign.](https://dunjii.com/docs-assets/sharing/shared-page.webp)

## Revoking a link

To stop sharing a page, set it to **Private** from its **Share** menu or from its row on the Shared page. A player who opens the link afterwards gets **Page not found**, or is sent to the campaign's folder if the page is in a campaign. A player who already has the page open keeps what is on their screen until they reload. When many players are reading a page at once, Dunjii serves it from a cache, so its link can keep working for up to 30 seconds after you make it Private.

A Secret page's link is its address. Anyone who has the link can open the page until you make it Private, rename it or move it.

To change several pages at once on the Shared page, tick their boxes (or ⌘-click on a Mac, Ctrl-click elsewhere, and Shift-click a range), then change the visibility of any selected row. A message confirms the change and has an **Undo** button. Pages you made Private stay in the list, struck through, until you click **Refresh the list**.

![Changing the visibility of two selected pages on the Shared page.](https://dunjii.com/docs-assets/sharing/shared-page-bulk-change.webp)
