# Read pages behind a login

> Paste a session cookie with Exact Links so your AI agent can read pages that need a login. Pages added this way stay internal by default.

To read pages that need a login, paste your session cookie into the **Advanced options** of an **Exact Links** crawl. AskVault sends it for that crawl only, and pages added this way start as **Internal Team Only**, so your website visitors do not see answers from them.

## Before you start

- Use a dedicated service-account login, not your personal admin login, and treat the cookie like a password.
- Cookies work with **Exact Links** only. A whole-site **Domain Crawl** does not send cookies and refuses them, because it would only see the logged-out site. List the pages you need instead.
- The cookie string can be up to 4,000 characters in total.
- Only use this on sites you are allowed to index.

## Steps

1. Log in to the site in your browser.
2. Copy the cookie. Open your browser's developer tools, go to **Application** (or **Storage**) › **Cookies**, and copy the names and values for that site as `name=value; name2=value2`. A cookie-export extension that gives that string or JSON also works.
3. In AskVault, open the **Crawl Website** window:

#### New dashboard

Open **Knowledge** in the sidebar, under **Your agent**, click **Add knowledge** and choose the website option.

#### Previous dashboard

Open **Knowledge**, click **Add Source** and choose **Web Crawler**.

4. Choose **Exact Links** and paste the page addresses that need a login.
5. Open **Advanced options** and paste the cookie into **Cookies**.
6. Click **Scrape N URLs**.

## Who can see these pages

Pages created by a crawl that used cookies start as **Internal Team Only**. They stay in your dashboard, but the website widget, the hosted page and other public channels do not answer from them.

- A page that already held content keeps whatever Audience you gave it. Adding it again with a fresh cookie does not change it. If you made a page **Public** on purpose, it stays public.
- To let customers' questions use a page, open its source settings and set **Who can ask questions about this?** to **Public (Website Chatbot & Internal Team)**.
- Pages added without a cookie keep the usual **Public** default.

## Check it worked

1. Open **Knowledge** and find the pages. They should show **Indexed**, not an error.
2. Open one and confirm it holds the real page text, not your login screen.
3. Ask a question in the chat test. Your team sees the answer; customers on the widget do not, while the pages are internal.

## What happens to the cookie

- **It is not stored.** It is used for the crawl you started, then discarded.
- **Resync does not reuse it.** Resync reads the page without your cookie, so a login-protected page can come back as the login screen. To refresh these pages, paste them again with **Exact Links** and a fresh cookie.
- **A rotated cookie is not adopted.** If the site issues a new session cookie mid-crawl, AskVault keeps sending the one you pasted. A site that rotates cookies aggressively may fail partway through.
- **It expires.** Session cookies end when the browser closes, and others last days to months. Once it expires, later pages come back as a login wall. Copy a fresh cookie and paste those pages again.

## If it doesn't work

**Pages indexed as a login screen.** The cookie expired or does not match the site's domain. The cookie's domain must be the site you are crawling or a parent of it.

**Cookies are refused.** You are in Domain Crawl mode. Switch to **Exact Links**.

**The account uses MFA.** A cookie captured after MFA works until it expires, but AskVault cannot get past MFA itself. Use a service account without MFA if you need to repeat this.

**The cookies are not enough.** Upload exports of the content as [files](/knowledge/upload-files/), or use an [app import](/knowledge/import-from-apps/) where one exists.

## Common questions

### Is it safe?

With a dedicated service account, yes. AskVault keeps no copy of the cookie afterwards, although it passes through AskVault's servers for that crawl like any other request data. Log out of the source account when you are done.

### Can I use this on a site I do not own?

Only with explicit permission, and within the site's terms.

## Related

- [Add your website](/knowledge/add-your-website/)
- [Choose which pages your agent reads](/knowledge/choose-pages/)
- [Knowledge: what your agent reads](/knowledge/)

Source: https://docs.askvault.co/knowledge/pages-behind-login/
