# Public Link

<figure><img src="https://1875572357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzP7hFWzU2Jj7xMbv2nyp%2Fuploads%2Fgit-blob-05f6e1fcb8533ae669b024fad2b618d60395fd2e%2Fpubliclink.png?alt=media" alt=""><figcaption></figcaption></figure>

Public Link allows you to share your notebook widely by creating a public link or embed code. Anyone with the link can access the shared content without needing a login.

## Key Features

* Public Accessibility:
  * Anyone with the link can view the content, facilitating easy sharing without access restrictions.
* Embed Code:
  * Easily embed the notebook into websites or blogs using the generated embed code.
* SEO Control:
  * Public links are set to “no-index” to prevent search engines from indexing the content, ensuring privacy and control over the shared data.
* Customizable Expiration:
  * Set an expiration date for the published content to automatically delete after a specified number of days, providing an extra layer of security.
* High Performance:
  * Data is pre-fetched and saved as a snapshot, resulting in faster display speeds.

## How to Set Up

1. Open the notebook
   * Open the notebook you want to share.
2. Set Permissions
   * In the header, click the `Share` button. Select `Public link` tab.
   * Click `Create public link` button.
   * Choose the specific pages you want to include in the public link.
3. Set Expiration (Optional)
   * If you want to set the expiration, enable the expiration option and set the number of days after which the published content will be deleted.
4. Publish
   * Click the `Publish` button to generate the public link.
5. Distribute
   * Copy the link or embed code and distribute it as needed.
