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.
<p>If you want to download our digital content safely, please go to our store by clicking a link below.</p>
<p>Directly downloads our products from this directory is not recommended because, we help cut piracy.</p>
<p><a href=”//URL-Goes-Here”>Take me to the store.</a><br />
</body><br />
</html><br />
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.