Host a Website on Google Drive | 100% Free Now!

Yes, you hear that right. You don’t need to pay any money to host a website on Google Drive. All you need is a domain name, pre-built website, and Google account.

Google Drive has always been a great place to store HTML, JavaScript and CSS files so they are secure and available from anywhere. Now you can host and share this content too! Watch this video to learn more.
How to host a website for free on google drive ?


By the way, there are many Cheap Web Hosting India companies that provide web hosting. You do not need to buy  web hosting to host a website. We’re a big fan of cloud services on this blog,  If you’re wondering how to host a website on Google Drive for free, well, I just did (and it took me 2 minutes!) so I’ll tell you all about it.
Even though the new Google Drive has made it harder to host websites, there’s still a pretty easy workaround I came across.

How to host a website for free on google drive ?


In a easier way

To host a web page on Google Drive:

Create a folder in Google Drive and set the sharing permission to “Public on the Web.”

Upload the HTML, JavaScript and CSS files for your web page to the new folder.

Select the HTML file, open it and click the “Preview” button in the toolbar.

Share the URL (it will look like www.googledrive.com/host/…) and anyone can view your web page!

But this is not easy that much as expected. Few things keep in mind that google drive hosts only static pages. ( No dynamic websites like WordPress). If your website is of few pages and css files then the google drive is best option to host ( Free of cost )

In a detailed way

1. Put all your website files in a .zip file (.rar doesn’t work, I tried). I made a sample website in a .zip file by modifying Amit’s content, you can download it here if you don’t have any zipped webpages kicking around.
2. Open the Google Script page and upload your .zip file.
3. Hit upload file, and you should see this:
4. Enjoy your free web hosting!



Hosted website on Google Drive


If you’re learning to host a site on Google Drive out of curiosity, you probably aren’t satisfied with having all the work done for you with a script. Unfortunately for you, it’s not particularly techy or in-depth, it just has more steps.

  1. Create a new folder in Google Drive
  2. Upload the contents of your website’s .zip file and move them to the folder.
  3. Right click the folder and choose ‘share’, then ‘advanced’ at the bottom of the popup.
Choose ‘Public on the web’ and save.

  1. Choose ‘Public on the web’ and save.
Choose ‘Public on the web’ and save.

  1. After hitting save, you’ll be given a public link but it will be a link to the folder your .html files are stored in on Drive, not an actual website.
  2. So the next thing we need to do is to change the link. Cut out the string of letters and numbers between id= and &usp, and paste it at the end of https://googledrive.com/host/
  3. Navigate to your new link, and you should see your web page!
Before we move I just want to give a few pros and cons of hosting the website on Google Drive.

Pros

  • No need to pay any hosting (Free Hosting forever)
  • You can host unlimited websites
  • The website loads super fast. (Because it is on Google servers).
  • No website downtime.
  • Suitable for small businesses that are not very active online.

Cons

  • You don’t have all the flexibility you have on any other hosting platform.
  • Setup is little tricky
  • You don’t get any emails or applications.
  • You can’t host applications like WordPress or Magento. You can only host simple static websites.

0 Comments

Newest Oldest