Below we will show you how to host a page for free on Google Drive or Microsoft OneDrive. It should be noted that both cloud services (Google Drive and OneDrive) do not have built-in tools to be able to host websites.
So we will need to use a free service called DriveToWeb.
With DriveToWeb you can sign in to your Google Drive or OneDrive account, and search for any pages (HTML) that are accessible by sharing. The service will transfer these files and view them through one of its own web servers.
Advantages and disadvantages of DriveToWeb
What's really nice is that every time you change a file, DriveToWeb automatically records it and updates it to the web server that uploaded it. Do you want to modify the text on a page? Just edit the page and save your new file to Google Drive or OneDrive. You do not need to upload anything or force DriveToWeb to do it manually. The service will scan the files in the cloud service you are using and will do it on its own.
DriveToWeb is extremely easy to set up, and you can have a page in three minutes.
The service gives a very bad web address. DriveToWeb generates a random, anonymous ID to access your site (eg: dyh67ujr5hbvtfygdfgyukj9w.drv.tw). This keeps visitors from seeing your account name, but makes it very difficult for anyone to remember the address. So the only people who will see your page will be the ones with whom you share the URL.
First, make sure your page is uploaded to Google Drive or OneDrive and that all files are properly organized. Try viewing your page locally in a browser to make sure it looks like you want it to appear on the web.
Then, after uploading your page folder, give it public viewing rights:
In Google Drive: at drive.google.com, find the folder, right-click it, and select Share. Click Advanced at the bottom right. Next to "Private - Only you can access", click Change and select "On - Public in the web." Save.
In OneDrive: at onedrive.live.com, find the folder you uploaded, right-click on it and select Share. Click Get a link. This will give your folder public viewing rights. You can ignore the actual URL. We will not use it.
Now that your page is public, visit DriveToWeb and click on any cloud service you use: Google Drive or OneDrive.
When you are asked for permission, grant it. This is necessary because DriveToWeb will look to find which HTML files have the appropriate public display rights.
Once you allow it to do so, DriveToWeb will display your web-accessible pages or page in seconds.