Stopping Display of All files on Web page
If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

Stopping Display of All files on Web page

Sometimes, for one reason or another, you will have no index file in your directory. This will, of course, mean that if someone types the directory name into their browser, the Index of / page will appear with a full listing of all the files in that directory will be shown. This could be a security risk for your site.

Note: You can also manage the index settings through the cPanel interface.

To prevent against this (without creating lots of new 'index' files, you can enter a command into your .htaccess file to stop the directory list from being shown:

Options -Indexes
Knowledgebase Article 301,144 views bookmark tags: directory htaccess index


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

How do I display my home page which is using a name other than index.html?
Knowledgebase Article 331,335 views tags: directory homepage htaccess index order

Explains the use of DirectoryIndex and how to use it.
Knowledgebase Article 196,953 views tags: cpanel htaccess

If suddenly when you go to your page, you get nothing on the page. You can still get HTML to display, just not PHP. To serve HTML pages to browsers, we don't associate the Apache processes with your 2
Knowledgebase Article 191,610 views tags: blank page php

Related Help Content

How do I make a sub directory (or sub folder) act as the public_html for your main domain?
Knowledgebase Article 1,099,057 views tags: Drupal domain htaccess joomla wordpress

What is the .htaccess file and where can I find more information?
Knowledgebase Article 2,084,102 views tags: htaccess tips tricks

This article will explain how to add a PHP handler to your .htaccess files. This is useful if you want to customize the version of PHP that runs your PHP files.
Knowledgebase Article 408,493 views tags: htaccess php

Explains how to edit the .htaccess
Knowledgebase Article 371,176 views tags: htaccess

What is the Index Manager? How do I use the Index Manager?
Knowledgebase Article 196,096 views tags: index manager

The redirection of www.yourdomain.com/default.html or index.html to http://www.yourdomain.com/index.php?act=whatever redirects it to http://www.yourdomain.com/index.php%3fact=whatever In other words,
Knowledgebase Article 1,037,064 views tags: htaccess messing mod php redirect redirects rewrite variable variables

Preventing bandwidth theft using the mod rewrite engine and .htaccess
Knowledgebase Article 209,718 views tags: htaccess rewrite

How to run CGI scripts for Addon domains.
Knowledgebase Article 234,072 views tags: cgi htaccess

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here