此页面还没有简体中文版,暂以英文显示。

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.

Password protect my page

Pro: 7 days free, then $12 a month. Cancel any time.

On this page

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

QuestionCloudflare's answerSource
A shared password for every viewer?No: you “add their email address to an Access policy”One-time PIN
What the viewer typesAn email address, then the PIN that arrives, within 10 minutesOne-time PIN
Free?Yes: “$0 forever”, “50 user limit”Access
Past 50 viewers“$7 per user/month (paid annually)”Access
Who takes a seatEach 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 policyPreview deployments
Pages production (*.pages.dev) covered?No by default; Yes after the known-issues stepsPages known issues
Custom domain covered?Yes, with its own Access applicationPages 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 deployYes, 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

WayPlan and price for a passwordCoversWhat the viewer does
ConvikaPro, 7 days free, then $12 a monthThe page you choose, at its link or your own domainTypes one password once; that browser opens the page until 30 days pass without a visit
Cloudflare AccessFree plan “$0 forever” with a “50 user limit”, then “$7 per user/month (paid annually)” (Access)The hostname of an Access applicationEnters an allowed email, then a PIN within 10 minutes
NetlifyPro, “$20 /month with unlimited members” (pricing); “isn’t available on Credit-based Free and Personal plans” (docs)The project; a folder with _headersTypes a shared password into “a generic password prompt”
VercelPro “$20 /mo.” plus “$20 per month per protected project”; “Not available on Hobby” (docs)The project, in the scope you chooseTypes the password once per deployment URL
Tiiny HostSolo, $18 a month (pricing plans); “Available on Solo and above” (help)The projectTypes the password on a password screen
StatiCryptFree, MIT License (GitHub)The one file you encryptTypes 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 trial⁠

Frequently 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.

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

Compare with other hosts

Share this article

One password, sent to whoever needs it

Upload the HTML file, choose “Only people with the password” as you publish, and send the link. Convika's server checks the password before it sends the page.

Password protect my page

Pro: 7 days free, then $12 a month. Cancel any time.