How to host your website for free

Learn how to host your website for free using Netlify's hosting in combination with GitHub's source control. This method is ideal for those who want a simple, static website without ongoing hosting costs.

What's needed

  • A domain (preferably registered through Cloudflare)
  • A GitHub account (sign up at GitHub.com)
  • A Netlify account (sign up at Netlify.com)

Step-by-step setup

1. Set Up Your GitHub Repository

  • Create a GitHub account if you don’t have one.
  • Set up a new repository on GitHub.
  • Upload your website files (HTML, CSS, JavaScript) using GitHub.dev or Visual Studio Code.

2. Deploy Your Site on Netlify

  • Sign up at Netlify.com using your GitHub account.
  • Click on Deploy a new project.
  • Select GitHub as the source and choose your newly created repository.
  • Name your project and click Deploy.

3. Connect Your Domain via Cloudflare

  • Go to Cloudflare.com and purchase a domain.
  • Configure your domain’s DNS settings to point to Netlify.
  • Log in to Netlify, navigate to your project, and add your domain name.

Your website is now live and hosted for free!

Advantages of your free website

Zero Hosting Fees – Unlike Wix or Squarespace, Netlify offers free hosting with no hidden costs.

Full Ownership – You control your files and can move or modify them anytime.

Improved Performance – Static websites can load faster and are more secure compared to CMS-based websites.

High Security – Static HTML sites are more secure that 

Scalability – Ideal for simple portfolios, landing pages, or business info pages.

Disadvantages & Limitations

⚠️ Limited to Static Sites – This setup is not suitable for dynamic content, blogs, or e-commerce sites.

⚠️ No Built-in CMS – The basic HTML site will not allow advanced content management.

⚠️ Technical Knowledge Required – Making edits requires basic knowledge of HTML & CSS, though tools like ChatGPT can assist. I do offer this service, if you are interested drop me a message.

Who Is This Ideal For?

This setup works best for:

  • Single page websites
  • Low traffic websites
  • Freelancers/small business just starting out
  • Individuals with low budget
  • You are not looking to update content frequently

If you need a cost-effective, low-maintenance website, this is a great solution!

Recent posts:

How to fix max file size error WordPress/Plesk (upload_max_filesize)

If you've ever tried uploading a big file to your website and got hit with an annoying "file exceeds maximum upload size" error — you're not alone. I recently had to deal with this while working on one of my sites, and after a bit of digging, I found the simplest way to sort it […]

Single Template in Oxygen Builder Displays 404

In this article I share the main issues that can occur if your Oxygen builder template displays a 404 Error.

Freelancer vs. Agency for developing your website

Are you planning to build or revamp your business website and wondering whether to hire a freelancer or an agency? As someone who has worked as both a freelancer and alongside agencies, I often help clients navigate this decision. Each option has its strengths and challenges, and understanding how they operate can make all the […]

Start your project today

Get in touch
Contact Form
chevron-left