Internally, this little Google Script is doing all the hard work for you. If you are using the tool for the first time, you may have to click the “Authorize” button since the script needs your permission to upload that zip file to your Google Drive.
There are a few things you need to know before hosting websites on Google Drive. One, you need to have an index.html as that file will be served when someone tries to access the homepage of your site. Second, Google Drive websites have a URL structure likegoogledrive.com/host/ and there’s no way to change the default URL.
For instance, if your are hosting a website on Google Drive but wish to serve it under your own custom domain, that’s not possible yet. There’s a workaround though.

Public Google Drive Websites with different Web Domain

I’ll show an example here. This website is hosted on Google Drive and here’s the same websitebut hosted on a different web domain. The trick is easy – you just have to wrap your Google Drive website URL inside an IFRAME tag as shown in the following snippet:

  1. <html>

  2. <head>

  3. <style>

  4. body { margin:0; padding:0; }

  5. iframe { position: absolute; height: 100%; width: 100%; }

  6. </style>

  7. <title>Google Drive Website</title>

  8. </head>

  9. <body>

  10. <iframe src="https://googledrive.com/host/ABCD/" frameborder="0"></iframe>

  11. </body>

  12. </html>


The height and width attributes of the IFRAME tag should be set to 100% for the Google Drive website to occupy the entire screen. The only downside is that the URL in the address bar won’t change if you open a different page of the website since you are now browsing inside an embedded page. 
[*] Google Drive cannot be used for serving dynamic pages like those generated through PHP scripts on a WordPress website.