How to Host a Website on Google Drive for Free with a Custom Domain
How to Host a Website on Google Drive for Free
Table of Contents
In today's digital age, having an online presence is crucial for businesses and individuals alike. Hosting your website on Google Drive offers a cost-effective and straightforward solution. With its user-friendly control panel and easy setup, Google Drive hosting has become an excellent choice for many.
Why Choose Google Drive for Hosting?
Google Drive provides a seamless experience with its intuitive interface. It's an ideal platform for those looking to test a new concept or seeking an attractive hosting solution without breaking the bank.
Step-by-Step Guide to Host a Website on Google Drive
Step 1: Create a New Folder and Upload HTML Files
The first step in hosting your website on Google Drive is creating a dedicated folder for your website files. Follow these steps:
- Create a folder with your desired website name, such as www.yourdomain.com, on Google Drive.
- Inside this folder, create an HTML file named "index.html."
- Once your HTML file is ready, upload it to the designated folder.
Step 2: Make Your Folder Public
To ensure your website is accessible to the public, you need to adjust the folder's sharing settings:
- Right-click on your folder and select "Get link."
- Change the link sharing settings to "Anyone with the link can view."
Step 3: Host Your Website on 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:Discover Related Topics
Explore more topics that might interest you and expand your knowledge.
Step 4: Register a Custom Domain
Although Google Drive doesn't natively support custom domains, you can use third-party domain registrars like Freenom to register a free domain. Here's how:
- Visit Freenom and search for your desired domain name.
- Register the domain and configure the DNS settings to point to your Google Drive-hosted website.
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/
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 Freenom.com 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 www.gocodergo.tk. 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:
If you have bought your domain name, then you can see this type of typo interface :
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 https://lzfdfj8ryhtzcrap3bmxqq-on.drv.tw/www.yourdomainname.domainlevel/
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 https://lzfdfj8ryhtzcrap3bmxqqon.drv.tw/www.gocodergo.tk/ of this part. Still, you have to write only this part of the URL name and then click continue.
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 https://lzfdfj8ryhtzcrap3bmxqqon.drv.tw/www.gocodergo.tk/ 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
- Utilize the "Web App Mode" feature to enhance website performance.
- Google Drive hosting offers an ad-free platform with full source code access.
- Easily upload content from PCs and mobile devices.
Benefits of Hosting on Google Drive:
- Cost-effective hosting solution for beginners.
- Easy collaboration and file sharing.
- Quick and seamless website setup.
- Global accessibility for your website.
- Ideal for portfolios, blogs, and small businesses.
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.
Final Words
If you're on a tight budget and looking for a free web hosting solution, Google Drive is an excellent option for beginners. Hosting your website on Google Drive is simple, cost-effective, and offers a range of features to get you started. Whether you're a blogger, freelancer, or small business owner, Google Drive hosting provides a reliable platform to showcase your online presence.
If you found this guide helpful, please share it with your friends, family, and colleagues. For any queries regarding hosting, blogging, or SEO, feel free to reach out to us.











No comments