Traditional builders charge recurring rent to keep a database and PHP server patched 24/7. A modern static website compiles your pages into plain HTML, CSS, and optimized images ahead of time.
Step 1: Set up your GitHub account & website repository
Create a free account at github.com using your business email and turn on 2FA. Then create a dedicated repository for your website (for example: my-business-site).
✦Step 1: Set up your GitHub account & website repository
01Read the section
02Apply to your project
03Review the result
Illustration · not connected to your accounts
Step 3 of 4
Step 2: Set up your Cloudflare account
Sign up for a free account at dash.cloudflare.com using your own business email and enable 2FA. You do not need a paid Cloudflare plan to host a fast static website.
Traditional builders charge recurring rent to keep a database and PHP server patched 24/7. A modern static website compiles your pages into plain HTML, CSS, and optimized images ahead of time.
GitHub stores your source code and complete revision history for free. Cloudflare Pages compiles your repository whenever you approve an edit and serves the resulting static files from 300+ global edge locations with free SSL and unlimited static bandwidth on its free tier.
GitHub Free: Unlimited private and public repositories, pull requests, and complete version history.
Cloudflare Pages Free: Automated builds from GitHub, instant preview URLs for branches, free HTTPS/SSL, and global CDN caching.
Zero lock-in: Because your site lives in GitHub, you can move hosting to Netlify, Vercel, GitHub Pages, or any server anytime.
Step 1: Set up your GitHub account & website repository
Create a free account at github.com using your business email and turn on 2FA. Then create a dedicated repository for your website (for example: my-business-site).
Choose Private if you want only yourself and invited collaborators to view source files, or Public if you want an open codebase.
Optional — push a local website folder to GitHub with GitHub CLI
gh auth login
git init -b main
git status
# Review files and confirm no .env files or passwords are included
git add .
git commit -m "Initial static website"
gh repo create my-business-site --private --source=. --remote=origin --push
Step 2: Set up your Cloudflare account
Sign up for a free account at dash.cloudflare.com using your own business email and enable 2FA. You do not need a paid Cloudflare plan to host a fast static website.
When you connect GitHub inside Cloudflare Workers & Pages, authorize ONLY the specific website repository — never grant broad access to unrelated repositories.
Important:
Never share your GitHub password, Cloudflare password, or Cloudflare Global API Key with any third-party tool or freelancer. Always use provider-native role invites or narrowly scoped repository access.
MODULE 02 VERIFICATION
Before moving on
GitHub account created under your own email with 2FA enabled.
Dedicated website repository created with main as the default branch.
Cloudflare account created under your own email with 2FA enabled.
No passwords or global API keys shared with third-party sites.