How do I list files in directory?

Sometimes, for one reason or another, you will have no index file in your directory and will want to display all the files in the 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 allow this without creating lots of new 'index' files, you can enter a command into your .htaccess file to allow the directory list to be shown:
 
Options +Indexes

Please note for security reasons our servers disable directory Indexes by default.
If no index page is uploaded an error page will be displayed instead of the content of the folders.
  • 1 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

How do I Make a Strong Password?

The following article will give guidelines on how to make a stronger, more secure password....

Why is there a red X where my image should be?

There are 2 main reasons this could be happening. 1. The image is not in the folder. Have...

How to do a Traceroute

Traceroute is a command which can show the path of a packet of information taken from your...

Getting Server 500 Errors on your PHP Scripts

When a PHP script requires write-access to a file or directory (like Nucleus does for the...

How do I add a Favorites icon to my site?

Step 1 - Creating the Image     Using your favorite graphics software, create...