Sitehold
EN ▾
EnglishDeutschFrançaisEspañolNederlandsItalianoPortuguês
Start free

Protect a site with an access code or allowlist

Updated 25 November 2026

Short answer: sites on Sitehold are public by default. On any paid plan or beta account, a workspace owner can turn on Visitor access for a site to block visitors at the edge until they enter a generated access code or an allowed email address.

When it helps

Turn on visitor access when a page, prototype or Claude artifact is meant for a specific audience rather than the open web — for example a client review, an internal dashboard, a partner micro-site or a preview before launch.

Protection is enforced at the edge before any HTML or site asset is sent to the browser.

Two verification methods

MethodBest forHow visitors unlock
Access codeConfidential client work and private reviewsVisitors enter a share code generated by Sitehold.
Self-reported email or domain allowlistLight gates for a known team or partner listVisitors enter an email address that matches your allowlist.
  • Access code (recommended for confidential content): Sitehold generates a share code and shows it once. Share it with the people who should see the site. You can generate a new code at any time, which immediately invalidates all earlier visitor sessions.
  • Self-reported email or domain allowlist: allow specific addresses (such as alice@partner.com) or whole domains (such as @company.com). Domain rules match that exact domain only — @company.com allows bob@company.com, not subdomains such as bob@eu.company.com. Today this is an unverified gate: visitors type an email address and are not sent a verification email yet. Use an access code for confidential content.

1. Turn on protection for a site

  1. Sign in to your Sitehold account as a workspace owner and open the site.
  2. Under Visitor access, turn on Require visitor verification.
  3. Choose Access code or Self-reported email or domain allowlist.
  4. For an allowlist, paste emails or domains separated by lines, commas or semicolons — formatted lists such as Jane Doe <jane@partner.com>, @company.com are cleaned up automatically and duplicates are ignored. You can also attach reusable groups or use Copy allowlist from another site.
  5. Optionally add an Unlock screen note (plain text, up to 200 characters) telling visitors what the page is or who to contact for access.
  6. Leave Protect previews by default on if previews should also require verification, or turn it off if only the live address should be gated.
  7. Select Save access settings. If you chose an access code, copy the generated code from the dialog right away — Sitehold does not show it again.

Changes propagate to the edge within 30 seconds.

2. Reuse allowlists across sites and protect new sites automatically

If you share many sites or artifacts with the same team or client, manage them once under Account → Visitor access.

Reusable access groups

Create a named group (for example "Acme Staff" with @acme.com) and add its emails and domains once. Use Manage sites on any group to turn it on or off across existing sites and new sites in one save, or attach groups directly on individual sites alongside site-specific entries.

  • Selecting All eligible sites applies the group across existing email-allowlist and public sites (with explicit confirmation before protecting public sites), while leaving access-code sites untouched.
  • Editing a group updates every attached site within 30 seconds.
  • Removing one person from a group revokes only their sessions across every attached site; everyone else stays signed in.
  • Each account can have up to 50 groups, and up to 1,000 entries per group or per site (site-specific entries and attached groups combined).

Default protection for new sites

Under Account → Visitor access, turn on Protect newly created sites automatically and select one or more reusable groups. Every new site — including sites created by your AI agents — then starts protected in email allowlist mode from the moment it is created, with your chosen preview protection default and optional unlock note.

Previews and per-version overrides

  • Protect previews by default covers both the site's stable live preview (live.sitehold.site/...) and individual version preview links.
  • On a protected stable preview, unlocking it once keeps you unlocked as your agent uploads newer versions, so you do not have to re-enter the code on every deploy.
  • Need to share one draft publicly while the live site stays locked, or lock a draft on a public site? Change Preview access on that specific version to Inherit site default, Protected or Public.

Revoking access

  • Remove one person or domain: remove the entry from the site or reusable group and save. Only that visitor's sessions stop working within 30 seconds.
  • Log everyone out: choose Revoke all sessions or Generate new code on the site's Visitor access section. Every existing visitor session for that site is invalidated within 30 seconds.

What your AI agent sees

Only workspace owners can view allowlists, generate access codes or change visitor access settings — never non-owner team members and never AI agents.

Your AI agent can see whether a site or preview is protected so it knows not to assume a link is public, but it never receives access codes or allowlist addresses.

Plans and caveats

  • Plans: visitor access control is included on Starter, Premium, Premium 50, Premium 500 and Beta accounts. Sites on the Free plan stay public.
  • Downgrading: if your plan no longer includes visitor access control, existing gates stay active so protected pages are never exposed by surprise. Owners can still rotate access codes, revoke sessions, remove allowlist entries or make a site public after confirming.
  • Edge caveats: custom domains routed through another Cloudflare account or sites with an existing ServiceWorker may bypass edge gating.