> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/on-premises/configuration/overleaf-toolkit/public-access.md).

# Public Access

You can offer access to your Overleaf instance in two ways:

* Share a project link with guests
* Allow users to self-register (only available in [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro))

### Guest Access

{% hint style="info" %}
By default, even if a user obtains a project sharing link, they must **log in** before they can join a collaborative project editing session.
{% endhint %}

To allow anonymous access for link-shared projects, set both variables below:

{% code title="config/variables.env" %}

```dotenv
OVERLEAF_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING=true
OVERLEAF_ALLOW_PUBLIC_ACCESS=true
```

{% endcode %}

`OVERLEAF_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING` enables anonymous read/write on link-shared projects.

`OVERLEAF_ALLOW_PUBLIC_ACCESS` prevents non-authenticated users being redirected to the login page.

Recreate containers with `bin/up`. Then open a link-sharing URL in a private window.

### Public Registration

Public registration is only available in [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro).

{% hint style="danger" %}
Please note that once you enable public registration, **anyone** with access to your Overleaf instance can register as a user.

The registration process does not verify email addresses, so please only use it on an intranet or in a trusted environment, or disable it when you no longer need registration.
{% endhint %}

By default, neither the Community Edition nor Overleaf Pro allows public registration.

To enable it, add this to `config/variables.env`:

{% code title="config/variables.env" %}

```dotenv
OVERLEAF_ALLOW_PUBLIC_REGISTRATION=true
```

{% endcode %}

Recreate containers with `bin/up`.

Then click **Sign up** or visit `/register`.

<figure><img src="/files/j5eVnW7TBULVigyCiElb" alt=""><figcaption></figcaption></figure>

### Registration With Limited Domain

Limited-domain public registration is only available in [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro).

Before enabling this, configure email delivery so users can receive invites and notifications. See [Email delivery](/on-premises/configuration/overleaf-toolkit/email-delivery.md).

Then add the following line to `config/variables.env`:

{% code title="config/variables.env" overflow="wrap" %}

```dotenv
OVERLEAF_ALLOW_PUBLIC_REGISTRATION=@example.domain
```

{% endcode %}

`OVERLEAF_ALLOW_PUBLIC_REGISTRATION` can be set to:

* `true` to allow anyone who can reach the site to register
* `@example.domain` to restrict registration to emails in that domain


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ayakaleaf-pro.ayaka.space/on-premises/configuration/overleaf-toolkit/public-access.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
