Starlit Daily

☁️ How to host a website for free with Cloudflare Pages

If your site is made of ordinary HTML, CSS and images, Cloudflare Pages can put it online in minutes, with HTTPS and a fast global network, at no cost.

How to host a website for free with Cloudflare Pages
Image: NASA / Dominic Hart (Public domain (NASA)) · ↗

Why it matters

Renting a server means updates, security patches and monthly bills. A 'static' website, one made of ready files rather than a database, does not need any of that. Services such as Cloudflare Pages copy your files to data centres around the world, so visitors get them quickly from somewhere nearby.

Step by step

  1. Put your website in one folder, with the home page named index.html. Open it in your browser first to check that it works.
  2. Create a free account at cloudflare.com and turn on two-factor authentication.
  3. In the dashboard open Workers & Pages, click Create, choose the Pages tab, then Upload assets.
  4. Give the project a name; it becomes your free address, like your-name.pages.dev.
  5. Drag your website folder into the upload box and click Deploy site. HTTPS is switched on automatically.
  6. To update the site, upload the folder again as a new deployment. Older versions stay listed, so you can roll back if something breaks.
  7. Later you can connect a GitHub repository so every change publishes itself, and add your own domain under Custom domains.

Try it yourself

Make a one-page site about something you love, three paragraphs and a photo you are allowed to use, and publish it today. What would you add next?

Sources

⭐ Rate this post

💬 Comments

    💬 Ask Us Anything

    Curious about space or AI? Send your question — the best ones become new articles and videos.