Sunday 17 February 2013

Host HTML, CSS, JS & Web Content in Google Drive

You all know, Google drive is one of the recent and most useful cloud storage. In past, Drop Box and Sky Drive are the only popular cloud storage services. But, The files under Drop box and Sky drive are not permanant and secure. But now, We can also host Web content in Google Drive and we can use those files with unlimited bandwidth. Mostly, People are using paid hosting to host their scripts and files online. Now, It's Google turn! I think you all know, Google products are completely reliable. Even, A hosting company can close, But, Google products are safe and secure :P
       Also it is a great thing for freelancers to show their work to clients. We can safely share our files, photos and videos in Google without any fear with spammers and hackers. Google drive giving us 10GB per an account and it is completely free! If you really complete 10 gigabytes, Then, create a new Google account and host again :D

Instructions before Hosting Web Content on Google Drive

We can host HTML, CSS, JS and all other web formats except PHP, ASP such formats. Because, Those formats need back-end process. However, You cannot create dynamic websites on Google Drive. You can only host the web content, personal stuff and use them with unlimited bandwidth. Earlier, Professionals are used Google Code to host their files. But, After crossing the limited bandwidth, The hosted file will deletes automatically without any notification. But, In Google Drive, It's your drive! You can host whatever with unlimited bandwidth, except illegal content.

How to Host Web Content on Google Drive?

First log in to your Google Drive account through your Web browser and create a folder and share the folder to Public. It is most important to share the folder with Public. As shown in the below figure, First create folder.
After clicking on Share option, You can see the dialogue box as shown below. Look under 'Who can access' and select public. 
Now, go to the created folder and upload your web content or files. There is a slight important thing that, After uploading the file, you will get a url like https://docs.google.com/folder/d/link-to-your-site, Change this  format to https://googledrive.com/host/link-to-your-site. Note that, link-to-your-site remains the same.       Also read the info given by Google drive, How to host web pages on Google drive.
       That's it. You are all done! Try this out with your own Google Drive account! If you have any doubts regarding this, drop your comment below. I hope you'll enjoy this post :)