What's the best way to do this, to stop people pulling up a directory listing on a domain?
I can create a .htaccess file and the two options I've found are either
Options –Indexes
or
IndexIgnore *
Both work, the first one returns a server error when I go to a directory
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."
The second just returns an empty index.
Is either one better than the other, or is there a different way for me to do this?
I can create a .htaccess file and the two options I've found are either
Options –Indexes
or
IndexIgnore *
Both work, the first one returns a server error when I go to a directory
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."
The second just returns an empty index.
Is either one better than the other, or is there a different way for me to do this?