Introduction
In this article, I will show how to host a static website on the internet and make it live using CloudFlare Pages without cost.
Prerequisites
Log in to the Cloudflare Pages and a static website.
Step 1. Navigate to https://pages.cloudflare.com/ link and sign up if you are a new user. You need to verify your email address so that you can successfully log in to the site.
Step 2. After a successful login, you can able to see the Dashboard page. On the right side of the menu, you can able to see the Workers & Pages and then choose the Pages.
Step 3. I have prepared a simple website, and I have put it in a folder. If you have your website on Git, you can connect and directly deploy it, but I have it locally, so I'm choosing upload assets to upload the site.
On the next page, enter the Project Name, then press Create project and upload the assets. Once the files are uploaded successfully, you can press Deploy to Deploy the site.
Step 4. After the successful deployment, kindly provide some time for DNS reflection and then navigate to the domain available on the site.
Now, check the domain, and you will see your site is successfully available on the internet.
Conclusion
We have successfully hosted our website without cost, and we can have a custom domain name for the site. Kindly explore the Cloudflare pages for more services they provide.