Always Create An index.html File When Creating a New Folder In A Directory

Many GreenGeeks users have a common question about creating directories on their servers. For this instance; you wanted to create a subdomain for your downloads, but you don’t want anyone to do any of these unauthorized downloads of your digital products. Having your downloads left open can pose a risk to your site losing revenue when illegal downloads has occured.

Creating an index.html file is a great idea, but what if you want to add something useful to it? You can add instructions for your visitors to go to a specific location of your website.

Add A friendly Message to Each Of Your index.html files

This trick is intended for directories containing downloable content. For this instance; I created a friendly message that will encourage users to use my store to buy my digital products. Since I’m experimenting with it. However; you can do the same to prevent bad guys from making illegal downloads on your website.

I created an index.html file inside my downloads directory. And I’ve also created a link that will link directly to my store.

My Trick

This is my trick; I created this html file, and added my code. You can copy the code below; and alter it with your liking. This is useful if you wanted to hide your downloads directory from being viewed.

This is my trick what I’ve already did; and I’m still implement ways how to keep your downloadable products hidden.

Basics of this file in a directory

Without any html files in a directory; a 404 page rings up by default. If you added an index.html file inside your directory of your server; and a user views a file on your website, a user can view contents of your website.

Whether if you were creating a static website, or a blog; index files are important.

Leave a Reply

Your email address will not be published. Required fields are marked *

94 − eighty eight =