Docs

Private pages and sign-in

Keep a whole site or one section private, and choose how your users sign in. A passcode is the quickest: anyone with the code gets in. Invite-only lets in only the people you name, your users, after they sign in. Page Lemon runs the sign-in; there is nothing to set up yourself.

Last updated

Page options
On this page

Who comes in

WhoHow they get inUsed for
VisitorsNo sign-in, or a passcode you shareA public website, or a private one behind a passcode
Users: your customers or membersThe ways you turn on: an emailed code, a password, Google, Apple or a passkeyInvite-only sites, and apps where each user keeps their own records
Team: your peopleTheir Page Lemon loginChanging and reviewing your sites, drafts

Your team can also sign in to an internal tool: a private site where they work on shared records by role. A site lets in visitors or users, or it lets in your team (an internal tool), but not both on one site.

Say this to your AI

Copy into your AI chat

Protect this site with a passcode

Or only one section:

Copy into your AI chat

Put a passcode on the /lessons page

What your AI will ask you

  • Whether to protect the whole site or only some pages, and which pages (like /students).
  • A passcode or invite-only. A passcode lets in anyone who has the code. Invite-only lets in only the people you name.
  • For invite-only: who. Their email addresses, or a company by its domain (like acme.com), and whether to email each person an invite.

What to have ready

  • A kept site, and to be signed in to Page Lemon as its owner. You set a passcode or approve the people on a Page Lemon page, never in the chat.
  • For a passcode: one you choose, 6 digits or a longer password. Write it down: Page Lemon can't show it again. You share it with visitors yourself.
  • For invite-only: the email address each person will sign in with. If you're not sure which address someone uses, ask them: an invite only works for the address it was sent to. For a whole company, its email domain is enough.
  • For some pages only: the page addresses as they appear in the browser, like /students.

What happens

  1. Your AI tells you what it will protect and who gets in, then gives you a private Page Lemon link. It works once, for 15 minutes.
  2. Open it and type your passcode there: 6 digits, or a longer password of 8 characters or more. The passcode never goes through the chat.
  3. Visitors see a page asking for the passcode. Once they type it, that browser stays unlocked for 30 days.
  4. Your AI checks the site now asks for the passcode, and asks you to try it in a private browser window: you should see the passcode page, and your passcode should open the site.

The passcode is set only on the Dashboard: your AI gives you a private link to the page where you type it, and it never asks for the passcode in the chat. Page Lemon stores only a scrambled form of it (a one-way hash), so it can't show it to you again: note it down.

Invite-only

Copy into your AI chat

Make my site invite-only and let in alex@example.com and claire@example.com
  1. You approve the people once, in your browser.
  2. Each user is emailed an invite. They sign in with that email address and can then open the site.
  3. Everyone else sees a sign-in page. Removing someone signs them out at once.
  4. To test it, open the site in a private window. You should see the sign-in page; after signing in with an invited address, the site opens. Someone not on the list can't get in.
  5. A visitor who signs out (at /__pl/sign-out on your site) has to sign in with their email again to get back in, so nobody else at a shared computer can.
  • Let in a whole company by its domain, like acme.com (not gmail.com or other free email providers).
  • Make one section invite-only and leave the rest public (higher plans): "Show /investors only to the people I add."
  • Invite-only replaces a site passcode, so remove the passcode first.

Pages for groups

On the App plan and higher, a page or a folder can open only to a group of your users, and a list can say what each group may do.

Copy into your AI chat

Only the Hiring team can see /candidates. Managers can delete candidates; everyone else can only add them
  • Your AI makes the groups (like "Hiring team" and "Managers"), puts people in them, and limits the pages and lists.
  • Someone in several groups gets what each group gives. A group never lets anyone into a site they couldn't sign in to.
  • Check it: ask "Who can do what on my site?". Your AI reads back a table made from the rules themselves: each group, the pages it opens, and what it can do in each list. Ask "What does Alex see?" to try it as one person.

How your users sign in

You choose which ways are on for your site: a password, Google, Apple, passkeys and an emailed code (at least one stays on; a passkey is never the only way). A password is the default, and we don't encourage the emailed code: every code is an email that counts against your quota. After a user signs in with an emailed code, the sign-in page offers to choose a password (they can say "Not now"), and the emailed code stays available beside it, because a password reset is an emailed code: the code can only be switched off when passwords are off too. Ask your AI: "Let my users sign in with Google only", or leave the password and the code on. Every request for an emailed sign-in code is protected by a quick human check (Cloudflare Turnstile), so bots can't fill your users' inboxes.

Passkeys for your users

A passkey lets a user sign in with their fingerprint, face or screen lock, with no code to wait for. Nothing to set up: after a user signs in with a password or an emailed code, your site's sign-in page offers to save one on that device. They can also add, rename and remove their passkeys on their account page.

  • Users can get one without a prompt. After a user signs in with a password saved in their browser or password manager, many browsers save a passkey for them automatically and say so. Where that is not supported, the page asks as usual.
  • A phone works too. A user with no passkey on a computer can scan the code on the sign-in page and sign in with their phone. The page then offers to save a passkey on that computer, so next time the phone is not needed.
  • A passkey is an extra way in. If your site also has the emailed code or the password, those keep working, so a lost phone never locks anyone out. A password reset by emailed code removes the user's passkeys.
  • It works on the address it was made on. That is your pagelemon.dev address or a domain you connected. A user who signs in on a second address is offered one there too.
  • If a user's phone is lost or stolen, open the user on the Users page in your Dashboard and choose Remove passkeys. It removes their passkeys, signs them out everywhere and emails them. They can sign in again another way.
  • Removing a passkey. A user removes a passkey on their account page. Some browsers keep showing it until the user also deletes it from their passkey manager (for example iCloud Keychain or Google Password Manager); the page says so.
  • You see how many passkeys a user has, nothing more. The names and devices stay with the user.
  • Teammates sign in with their Page Lemon login, not with a site passkey.

Passkeys in your phone app

  • Android apps can let users sign in with a passkey. The passkey belongs to one address of your site, and we suggest your pagelemon.dev address for it. If you later change your connected domain, passkeys made on the old address stop working, and those users sign in another way.
  • iPhone apps show your site's sign-in page in the phone's browser sheet, so a passkey works there the same way as on the web, and the user lands back in your app signed in.
  • A user adds the passkey in the browser, on your site's account page, then uses it in the app. Adding one inside the app is not available yet.
  • Removing a passkey signs the app out too. Choose Remove passkeys for a user, or let them remove it themselves, and the app asks them to sign in again.

Who signs in is half the story: each list then says who sees which records.

Rules: who sees and changes what

Rules decide which pages are private, which users see which records, and who can add, edit or delete. Your AI sets them; Page Lemon enforces them on every request, so hiding something on a page is never the only protection.

Copy into your AI chat

Each client should only see their own requests, and I see all of them
  • Check before you trust it: ask "What does Alex see?" or "Who can do what?". The answer is built from the rules themselves, not from what was intended.
  • Hidden means hidden: a field you hide from users is never sent to them, in a table, a page or an export.
  • If a rule can't be applied, the page closes rather than opening: visitors see "not available right now", never the private content.
  • Taking a rule away that makes something public needs your approval on a link.
  • Lists: who sees which records and what they may do, such as "each user sees their own rows" or "visitors can only add" (a contact form). See Lists.
  • Your team: what each role may do. See Team and roles.
  • Your AI: it may read your users' records only after you approve it. See Run your site by chat.

Change or remove protection

  • Change the passcode: ask for a new one. Everyone who unlocked the site with the old one is signed out.
  • Open the site again: "Make my site public again". Your AI gives you a Page Lemon link; you confirm it there yourself, signed in, within 30 minutes. The same goes for removing a page's protection or turning sign-in off.
  • See what's protected: ask "Who can see my site?", or open the site → Users → More → Who can see what in the Page Lemon app.

Good to know

  • How many sections a site can lock, and how many users you can have, depend on your plan: see Limits. On most plans the locked sections share one protection, the same passcode or the same email list, so changing it changes all of them; the passcode page and the approval page list every section it applies to. A passcode never opens a section that only users can see.
  • If your plan ends or you move to a cheaper one, nothing is made public: locked sections over the new plan go offline ("not available right now") after the time to choose, and you are told what changes first. See Limits.
  • After 10 wrong tries in 15 minutes, a visitor has to wait before trying again; the page says for how long.
  • Shared computers: visitors can lock your site again in their browser at /__pl/sign-out on your site (for example brave-otter-4821.pagelemon.dev/__pl/sign-out); the passcode page tells them. Ask your AI to add a "Lock" or "Sign out" link to that address on your pages.
  • The passcode page tells visitors without the code to ask whoever runs the site, so put a way to reach you somewhere public, such as your home page or a social profile.
  • Search engines don't see locked pages: they get the passcode page, marked not to be indexed.
  • Reviewing a big change before it goes live? Put it on a passcode-protected review copy, then publish the same files to your live site. See Review a big change privately.
  • When you protect a site, copies held by our network are cleared, so the old public pages stop showing.

Examples: a members' area, a client portal, an expense app. See also Apps and Scan users.

For AI assistants: the setup guide is at pagelemon.com/agents/protect.

Still stuck? Ask your AI

Need support with PageLemon.com, about Private pages and sign-in

Still need a person? Contact us