How to Host a Website on Google Drive for Free with a Custom Domain

Hosting website is one of the most difficult and expensive things to do. I wanted to show you how to host website using Google Drive for free in 2021.
Are you a beginner looking for affordable hosting? Look no further than Google Drive! 💻🌐 With its user-friendly control panel and easy setup, Google Drive hosting is an excellent choice. 🌟 In this comprehensive guide, we'll show you how to host your website on Google Drive for free with a custom domain name. Whether you're testing a new concept or seeking an attractive hosting solution, our step-by-step instructions will help you set up web hosting using Google Drive. By the end, you'll have a professional-looking site that's accessible from any computer with an internet connection. 💪✨

How to host a website on google drive with custom domain name

How to host a website on google drive for free with a custom domain?

There are a few steps that you have to follow that you have to apply:

Step 1️⃣: Create a New Folder and Upload HTML Files
📂 Start by creating a folder with your desired website name (e.g., on Google Drive. ✅ Inside the folder, create an HTML file named "index.html." 📄 Once you've prepared your HTML file, upload it to the designated folder. 🚀💻

2) After you have uploaded your folder now have public your folder as we have listed below:
Right-click on your folder you can see an option to get a link. Click on the get link. You can see this type of interface in the image shown below:

3) Now you have to go to the website Drive to web

Here on this website, you have to host your website using google drive here, click on the host on google drive, and log in with the same account. You have to give permission after that, you have to click you will automatically be redirected to the server account panel like in the image given below:


4) When you click on the link, it will host your site, but you can see that you do not have a custom domain as you can see in the image: like random-name/www.your folder name. tk/

5) As we can see that we have hosted your website, but now we can add the free custom domain name

First, you must register with to get a .tk domain for free. This site also lets you have other free domains such as .ml, .ck, etc.

6) Now, you can find the domain you want. In my case, the domain name was As I have searched, this type of domain is available, so I will buy this domain for 1 year, as you can see in the image:

7) If you have bought your domain name, then you can see this type of typo interface 

8) Now, you can go to the Manage DNS section and add the name as listed below:

how to add a name first of going to manage DNS and then select cname in the manage DNS section after that you have to fill target column of your link as given in bold but the link you have to add

9) Now, you have to wait for half an hour to Update DNS, and then your website is hosted with the custom domain name. as you can see in my case in the image given below (

10) Now, you can see that your website is ready, but the problem is that the SSL certificate and your site are also not secure; you have to use Cloudflare. 

Cloudflare can protect your website from DDoS attacks. And watch your website for all types of attacks. Now we use Cloudflare to protect our website and also for SSL certificates.

First of all, signup for Cloudflare or make an account on Cloudflare, and log in. After signup or login, add your website domain name to Cloudflare. Now you have to set your DNS in your Cloudflare account. as shown in the given image
After adding your site now you have to check out for a plan here in this, you can see the free plan at the bottom after that you can see the image given below, and in this, you have to add a record with text and write the name www then you have to fill the content like the URL of this part. Still, you have to write only this part of the URL name and then click continue.

After that, you must change the nameservers and replace your nameservers with Cloudflare 2 nameservers. 

After changing the nameservers, you have to wait for 24 hrs, and your site is ready to protect from DDoS attacks. You have also seen your site have an SSL certificate for one year after that, you have to renew both the SSL certificate also and the domain also as you can show in the below images:

How to update website content in google drive hosting?

In Google Drive, you have to Open a File where you have to add something to the website. Just Open a File in VScode and do changes in the file so you will also see the website will also change.

Tips on hosting a website on google drive for free

1) Hosting a website on Google Drive and using the 'Web App Mode' feature is a good way to improve your own speed on the open web. It also offers loads of free features which you can use to make your site look nice and professional.

2) For a long time I have been contemplating hosting one of my personal websites on google drive and the other day I decided to put this idea into practice. It should be mentioned at this point that hosting your website on google drive provides you with an ad-free platform, full access to the source code, and runs the site on a high multi-core machine for optimal speed.

3) Using google drive hosting allows you to reduce the expenses required to host an online show, blog, website, or even a standard WordPress blog. Google Drive is easy to use and provides the same functionality that any other hosting provider does. Uploading your content is easy and can be done both from a PC as well as mobile devices (I've tested it with my Samsung Galaxy S4).

Benefits of Hosting on Google Drive:

✅ Affordable hosting solution for beginners.
✅ Easy collaboration and file sharing.
✅ Quick and seamless website setup and file transfer.
✅ Global accessibility for your website.
✅ Ideal for portfolios, blogs, and online businesses.
✅ Increased chances of AdSense approval for static websites. 💼💡

Limitations of Hosting on Google Drive:

❌ Not suitable for hosting dynamic websites.
❌ File size limitation of 2048 MB.
❌ Traffic restrictions to ensure fair usage.
❌ Limited support for certain file types.
❌ Additional limitations on storage and supported file formats imposed by Google Drive's terms of service.

Tips for Hosting on Google Drive:

1️⃣ Use the "Web App Mode" feature in Google Drive to enhance website performance and user experience.
2️⃣ Enjoy an ad-free platform, full access to source code, and high-speed hosting infrastructure.
3️⃣ Easily upload content from PCs and mobile devices.

Final Words

If you're on a low budget and don't want to pay for web hosting, Google Drive is the best hosting for Beginners. I was always forced to pay for web hosting, which is far too expensive, which prevented many people from starting their blogs. However, now I can host my entire website on Google Drive, allowing me to start my blog.

If you think our posts are so useful, do not forget to share them with your family, friends, and others. 

Thank you for visiting our website🤗

If you find any Queries Regarding Hosting, Blogging, or SEO then contact us from the contact form section 
A blogtriggers is a platform that has information regarding in blogging and SEO in blogging journey for people who want to start their blogging career.


  1. Thanks for the article! I can't change the Freenom nameservers and still use their DNS configuration. Telling me: (In order to use Freenom DNS, please set your nameservers to default (Freenom Nameservers).) Is there a way around this?
  2. Can you please send a screenshot on our official telegram group

    Link of Telegram group:
Hire Me