There’s a Secret Way to Host Your Website for Free

Host Website For Free

Ever wanted to make a website?

Well now you have no excuse. In fact, you can host your website for free using this little known trick. I’m not sure why, but nobody seems to know about this trick. I accidentally ran across this help post from Google, and suddenly realized that this is a feature that could be incredibly useful.

Let’s go through the steps

  1. Download Google Drive and create a Google Drive account
  2. Create an HTML website, or simply download a starter project
  3. Now you have your website, but you need to host it! Upload the website files to Google Drive and put them in a new folder
  4. Go to drive.google.com, sign in, right click on the folder with your website files and click “Get Link”
  5. The link will look something like this:
     

    https://drive.google.com/open?id=0B-2V84KLSI7AflhSLXJ6enAtTG1xSmNvUU5DMGFiSVpLVER6QWtiR0dKdkhpLWV5TV9LZkE

     

    See that part after the “id=”? Copy that long ID down in a separate notepad or word document. That’s your document ID. You’ll need it later.

  6. Right click on the website folder again in Google Drive.
  7. Click Share, then Advanced
  8. Click Change, and set the permission to “Public – On the Web”. Your website is now accessible by anyone if they know how to access it.
  9. Remember that document ID I had you write down? Well, now you can go to
     

    http://googledrive.com/host/YOUR DOCUMENT ID GOES HERE

     

    This will take you to your website! Cool, huh?

So, how is this useful?

Well, now every change you make to your website files in your local google drive folder on your computer, not just on drive.google.com will be propagated to that website address. This allows you to make incremental changes to your website and see the results instantly by going back to that web address.

Now, there are other ways to do this on your computer such as visiting the file with your browser on a local host, but there are some features of websites that are blocked due to cross-domain security issues, which cannot be resolved unless you actually host the website.

What are the limitations?

To start, I’m not entirely sure how long this functionality will remain in Google Drive. It’s not a well-publicized feature, and so it probably also isn’t very highly utilized. Google tends to get rid of things that aren’t highly utilized, so we’ll see how long this lasts.

In addition, this hosting solution should only be used for rapid prototyping. DO NOT host your website on Google Drive permanently and tell all your friends to go visit that link, because it probably isn’t as secure as actually hosting your website on a dedicated or shared hosting site. This should only be used for personal or internal development purposes.

Finally, certain server languages cannot be run on Google Drive. Unfortunately this is trial and error so if you are not sure, you will have to experience at your own risk.

 

Is this really free, or are there some strings attached?

Other than the limitations I mentioned, there are no strings attached at all! It will not cost you a single penny! Now, you do have to keep in mind that once your website is complete and ready to launch to the public and attract millions of views to make you rich, you’re probably going to want to buy a dedicated or shared hosting solution. But then all you need to do is copy the website files over to your host, and BAM — Instant production-level website. Cool, huh?

Featured photo credit: Silhouette of cropped shot of a young man working from home using smart phone and notebook computer, man’s hands using smart phone in interior, man at his workplace using technology, flare light via shutterstock.com

The post There’s a Secret Way to Host Your Website for Free appeared first on Lifehack.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s