Knowledgebase

Back to Tools and Features

How To Stop A Directory Index Of A Page From Showing


This article contains information about hiding the index directory 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, a full listing of all the files in that directory will be shown. This could be a security risk for your site.

To prevent this without creating new index files, you can enter this simple command into your .htaccess file to stop the directory list from being shown:

Options -Indexes

 

This is enabled by default on all our shared servers.


Related Articles

How To Create And Download A Backup
How To Delete Your Content
Can I Add My Own CGI Scripts
Do I Use Localhost or RemoteMYSQLhost For A MYSQL connection
How To Backup My Site

Can’t Find what you need?

No worries, Our experts are here to help.