Can Cloudflare Access put a password on a static site?
Quick answer
Not a shared password: Cloudflare Access emails each allowed viewer a one-time PIN, and its docs say “If the email is allowed by an Access policy, you will receive a PIN in your inbox. This secure PIN expires 10 minutes after the initial request,” read on November 25, 2026. Access's Free plan is “$0 forever” with a “50 user limit”, and Pages' own access setting covers previews only. Convika puts one password on a page with Pro, 7 days free and then $12 a month, and you send it to whoever needs it.
Pro: 7 days free, then $12 a month. Cancel any time.
On this page
- Cloudflare Access on a static site, case by case
- Pricing: free up to 50 users, then $7 a user
- Cloudflare Pages: the built-in setting covers previews only
- Put Cloudflare Access with a one-time PIN on a Pages site in 5 steps
- What your viewers see
- A shared password on Cloudflare: Basic auth in a Worker
- Cheaper or simpler ways to put a password on a page
- Frequently asked questions
- Sources
Not with a shared password. Cloudflare Access sends each allowed viewer a one-time PIN by email instead, and its one-time PIN doc says “If the email is allowed by an Access policy, you will receive a PIN in your inbox. This secure PIN expires 10 minutes after the initial request.” Cloudflare's Access page lists the Free plan at “$0 forever” with a “50 user limit”, and Pay-as-you-go at “$7 per user/month (paid annually)”.
Convika gives a page one password instead: you type it as you publish and send it to whoever needs it, with no list of email addresses. It comes with Pro, 7 days free and then $12 a month, and Convika's server checks the password before it sends any of the page. Jump to the ways side by side, or drop your file in the box for a free preview link now.
Every Cloudflare fact below comes from Cloudflare's own docs and product page, read on November 25, 2026, between 09:58 and 10:03 JST. Each quote links to its page, and the sources list the date each page shows.
Cloudflare Access on a static site, case by case
| Question | Cloudflare's answer | Source |
|---|---|---|
| A shared password for every viewer? | No: you “add their email address to an Access policy” | One-time PIN |
| What the viewer types | An email address, then the PIN that arrives, within 10 minutes | One-time PIN |
| Free? | Yes: “$0 forever”, “50 user limit” | Access |
| Past 50 viewers | “$7 per user/month (paid annually)” | Access |
| Who takes a seat | Each viewer who logs in: “A user consumes a seat when they perform an authentication event” | Seat management |
| Payment details on Free? | Yes: “this step is still needed but you will not be charged” | Cloudflare One setup |
| Pages previews covered? | Yes, with Enable access policy | Preview deployments |
Pages production (*.pages.dev) covered? | No by default; Yes after the known-issues steps | Pages known issues |
| Custom domain covered? | Yes, with its own Access application | Pages known issues |
| Workers covered? | Yes: “one Worker's production workers.dev URL, preview URLs, or both” | workers.dev |
| One page, or the whole site? | The domain you add; wildcards cover parts “that share a root path” | Self-hosted application |
| A new deploy | Yes, covered: Cloudflare “checks every HTTP request to your application” | Self-hosted application |
| One-time PIN on by default? | No: “OTP is no longer added automatically” | One-time PIN |
Pricing: free up to 50 users, then $7 a user
Cloudflare's Access page puts the Free plan at “$0 forever”, “Best for teams under 50 users or enterprise proof-of-concept tests,” with a “50 user limit” in the usage row. Pay-as-you-go is “$7 per user/month (paid annually)”, with “No user limit.”
A viewer counts as a user. Cloudflare's seat management doc says “A user consumes a seat when they perform an authentication event,” and for Access that is “any Cloudflare Access authentication event, such as a login to the App Launcher or an application.” Fifty different people who open the site with a PIN fill the Free plan; “Inactive users do not count towards billing.”
Setting up the Zero Trust organization asks for a card even on Free. The setup doc: “Complete your onboarding by selecting a subscription plan and entering your payment details. If you chose the Zero Trust Free plan, this step is still needed but you will not be charged.”
Cloudflare Pages: the built-in setting covers previews only
Pages has an access switch, and it stops at previews. The preview deployments doc says Enable access policy “will only protect your preview deployments (for example, 373f31e2.user-example.pages.dev and every other randomly generated preview link) and not your *.pages.dev domain or custom domain.” Production takes the extra steps below, from Pages' known issues, and a custom domain takes its own Access application.
On Workers, the workers.dev doc says “Access can protect one Worker's production workers.dev URL, preview URLs, or both.”
Put Cloudflare Access with a one-time PIN on a Pages site in 5 steps
Create the Zero Trust organization
Sign up for Cloudflare One, choose a plan, and enter payment details; on the Free plan “you will not be charged.” Cloudflare adds its own identity provider as the default login method.
Turn on Enable access policy in the Pages project
In the Cloudflare dashboard, go to Workers & Pages, select the Pages project, then Settings > Enable access policy. This creates an Access application for the previews.
Widen the application to the production address
Select Manage on that Access policy, then under Access > Applications select the project and Configure. Under Public hostname, delete the wildcard (*) from the Subdomain field and select Save; “At this step, your *.pages.dev domain has been secured behind Access.” Go back to Settings > General and reselect Enable access policy to cover the previews again. For a custom domain, go to Zero Trust > Access controls > Applications > Create new application > Self-hosted and private, and add the domain.
Add One-time PIN as a login method
Go to Zero Trust > Integrations > Identity providers, select Add new identity provider, and select One-time PIN.
List each viewer's email address in the policy
Add the viewers' email addresses to the application's Allow policy, or a rule such as Emails ending in @example.com for a whole company (policies). “All Access applications are deny by default -- a user must match an Allow policy before they are granted access.”
What your viewers see
A viewer meets the Access login page, where they “enter your email address and select Send login code.” An allowed address gets a PIN that “expires 10 minutes after the initial request.” Anyone else waits for a code that never comes: “By design, blocked users will not receive an email. The login page will always say A code has been emailed to you.” Inside, the token lasts for the Session Duration you choose, and “If the user's application token (and global token) has expired, they will be prompted to reauthenticate.”
A shared password on Cloudflare: Basic auth in a Worker
Cloudflare's Workers docs carry an HTTP Basic Authentication example that “Shows how to restrict access using the HTTP Basic schema,” with the password kept in the Worker's environment. The page itself warns: “This code is provided as a sample, and is not suitable for production use,” and “For a production-ready authentication system, consider using Cloudflare Access.”
Cheaper or simpler ways to put a password on a page
| Way | Plan and price for a password | Covers | What the viewer does |
|---|---|---|---|
| Convika | Pro, 7 days free, then $12 a month | The page you choose, at its link or your own domain | Types one password once; that browser opens the page until 30 days pass without a visit |
| Cloudflare Access | Free plan “$0 forever” with a “50 user limit”, then “$7 per user/month (paid annually)” (Access) | The hostname of an Access application | Enters an allowed email, then a PIN within 10 minutes |
| Netlify | Pro, “$20 /month with unlimited members” (pricing); “isn’t available on Credit-based Free and Personal plans” (docs) | The project; a folder with _headers | Types a shared password into “a generic password prompt” |
| Vercel | Pro “$20 /mo.” plus “$20 per month per protected project”; “Not available on Hobby” (docs) | The project, in the scope you choose | Types the password once per deployment URL |
| Tiiny Host | Solo, $18 a month (pricing plans); “Available on Solo and above” (help) | The project | Types the password on a password screen |
| StatiCrypt | Free, MIT License (GitHub) | The one file you encrypt | Types the password into the page; it decrypts in the browser |
Convika's password needs no Zero Trust organization, no identity provider, and no list of viewers: a client, a board member, or a new hire opens the page with the password you sent. Start Pro's free trial from the sidebar with Try Pro free for 7 days; after the trial Pro is $12 a month until you cancel, and its first payment comes with a 14-day money-back guarantee. Upload the HTML file with Upload a file, click Publish page, choose Only people with the password under Who can open this page?, type the password, and click Publish with password.
Convika's server checks the password before it sends any of the page, and the password screen carries nothing from the page behind it. A fix goes live at the same link with the password still on: Update from an HTML file, then Publish v2 at the same link. Drop the file into the box for a free preview link; you choose the password as you publish.
Skipbox
Cheap & fast GitHub Actions runners, unlimited for $39 a month
Your own machine keeps Docker layers and package caches between jobs. Switch by changing one runs-on line.
Start a free Skipbox trialFrequently asked questions
Can Cloudflare Pages be password protected?
Not with a shared password. Pages' own Enable access policy “will only protect your preview deployments”; the live *.pages.dev address and a custom domain need Cloudflare Access, which emails each allowed viewer a one-time PIN. On Convika, a page gets one password with Pro, which starts with a 7-day free trial.
Is Cloudflare Access free?
Yes, up to 50 users. Cloudflare lists the Free plan at “$0 forever” with a “50 user limit”, and Pay-as-you-go at “$7 per user/month (paid annually)”. Each viewer who logs in takes a seat, and setting up the organization asks for payment details even on Free.
How does the Cloudflare Access one-time PIN work?
The viewer enters an email address and selects Send login code. If an Access policy allows that address, “you will receive a PIN in your inbox,” and the PIN “expires 10 minutes after the initial request.” One-time PIN is a login method you add under Identity providers: “OTP is no longer added automatically.”
Can Cloudflare Access let in everyone at my company?
Yes. An Allow policy with Emails ending in and your domain, such as @example.com, admits every address there. Each person who logs in still counts toward the 50 users of the Free plan.
Does Cloudflare Access protect my custom domain on Pages?
Yes, with an Access application of its own. Pages' known issues say that without one, “an Access authentication will render but not work for your custom domain visitors.”
Can a Cloudflare Worker ask for a password?
Yes, with code. Cloudflare's HTTP Basic Authentication example checks a password in a Worker, and the page warns it “is not suitable for production use.” On Convika, the password is a choice in the publish dialog, checked on Convika's server.
Sources
Read on November 25, 2026, 09:58 to 10:03 JST (00:58 to 01:03 UTC). Dates in parentheses are the page's own.
- One-time PIN login (last updated August 31, 2026)
- Cloudflare Access (no date)
- Seat management (May 1, 2026)
- Cloudflare One setup (October 12, 2026)
- Preview deployments (November 19, 2026)
- Pages known issues (November 6, 2026)
- Publish a self-hosted application (April 17, 2026)
- Policies (November 17, 2026)
- workers.dev (November 6, 2026)
- HTTP Basic Authentication example (August 14, 2026)
- Other ways: Netlify Password Protection (October 7, 2026), Netlify pricing (no date), Vercel Deployment Protection (September 15, 2026), Tiiny Host password help (October 11, 2026) and pricing plans (October 20, 2026), StatiCrypt
Next step
How to share an HTML file as a link that opens on any phone
Upload the file to a host and send its link; email and Google Drive send the code. 8 hosts compared, from Convika to Netlify Drop, with 4 steps.
Related articles
- Password-protected HTML hosting compared: Netlify, Vercel, Cloudflare Access, Tiiny Host, GitHub PagesPut a password on an HTML page: Convika Pro with a 7-day free trial, checked on the server. Netlify, Vercel, Cloudflare Access, Tiiny Host, and GitHub Pages by plan, price, and setup.
- How to password protect an HTML page or websiteA JavaScript password sits in the page source. Free: StatiCrypt or .htaccess. Paid: Netlify Pro $20, Vercel $20 a project, Tiiny Host $18, or Convika Pro.
- How to share a single-file HTML app from Claude Code with only your teamSharePoint and OneDrive download an HTML app instead of running it. Publish it behind a password, post one link, and update it at that link. No server.
- Cloudflare Pages free tier limits: the Free plan's 500 builds a month, 20,000 files, 25 MiB a fileConvika Free hosts a one-page site with no builds or file counts. Cloudflare Pages free tier limits: 500 builds a month, 20,000 files, 25 MiB a file, and what's past each.
- Cloudflare Pages vs Workers in 2026: which to use for a siteFor one landing page, Convika Free needs neither. Cloudflare Pages vs Workers: Cloudflare says start new projects with Workers, and no doc calls Pages deprecated.
- Does Vercel password protection cost extra, and on which plan?Yes: $20 a month per protected project on top of Pro, and not on Hobby. Plans, scope, setup, and what viewers see, from Vercel's docs, read November 25, 2026.