Google Drive Web Hosting feature no longer available

Posted on 08.15.2014

Google has recently upgraded the Google Drive interface for everyone and according to the support page the web hosting feature is no longer available in the new Google Drive. You can still create public folders inside Drive but the option to publish that folder as a website is gone.

The good news however is that is still very much possible to host sites on Google Drive through Google Scripts (Written by Amit Agarwal) without you having to write a single line of code. Here are the steps involved:

  • Create your HTML website and put your HTML, JS, CSS, Images and everything else in a .zip file. Make sure there’s an index.html file in your archive. If you too lazy to create one, download this zip file.
  • Go here, authorize the app and upload your website zip file.

The app will upload the file to your Google Drive, uncompress the archive and generate a URL for your website, just like the original Google Drive. That’s it.

Internally, the app creates a folder inside your Google Drive, changes the sharing permissions to public (anyone can view, you can edit) and then generates the URL using the ID of the new folder.

There’s another workaround too. Open your Google Drive, click the “Gear” settings icon and choose “Leave the New Drive” from the dropdown. You can now publish website using the old method and then switch to the New Drive.

Thanks to the source:

If you liked this post, say thanks by sharing it:
Share this: