SimplyWebHosting.com KnowledgeBase Glossary    Contact Us
Search  
   
Browse by Category
SimplyWebHosting.com KnowledgeBase .: Shared Web Hosting on Plesk Servers .: How can I stop file directory listings?

How can I stop file directory listings?

The easiest way to stop the directory indexing is to put a blank index.html file in the directory. This will pull up the blank page every time someone tries to access that directory in a browser.

Another option would be to create a .htaccess file in that directory. Create a text file named .htaccess containing the following line:

Options SymLinksIfOwnerMatch -Indexes

Now upload this file to the base directory for which you wish to disable directory indexing. This directory and all of its subdirectories will now have indexing disabled. This Apache directive will disable directory indexing (the contents of a directory being displayed in your browser) having the same effect as displaying a blank index.html page.


How helpful was this article to you?

Related Articles

article In my VPS, if I back up a user directory, what specific directory am I backing up?
User directories are by default located in the...

(No rating)  11-22-2005    Views: 3874   
article Can I change the default starting file for my website (i.e. index.php instead of index.html)?
The easiest way is to simply rename or remove...

  7-24-2005    Views: 26026   
article My websites stop responding, even though the server is up and Apache is running.
It is likely that the issue could be resolved...

  1-11-2006    Views: 9260   

User Comments

No comments have been posted.


.: Powered by Lore 1.5.4
Copyright 2005-2014 Advantagecom Networks, Inc.
SimplyWebHosting.com - Xen Linux Virtual Private Servers (VPS) - Paypal Accepted