cancel
Showing results for 
Search instead for 
Did you mean: 

.htaccess and directory listings

N/A

.htaccess and directory listings

At www.drumcentral.co.uk,
I've managed to successfully use the htaccess file to prevent listing in the www part of the site, as well as the custom error docs, and more, with your help.
However, I can't seem to get anything to happen in the cgi area. I'd just like to prevent directory listing. I have a few folders outside the cgi-bin too.

Any clues?

Regards

Kenny Potter
2 REPLIES
N/A

.htaccess and directory listings

From memory, I believe the option to deny directory listings does not work on the CGI servers. You can simulate the effect by uploading a blank "index.html" document to the folder, which will be called and displayed thus preventing recieving an index.
N/A

Htaccess

It's so obvious and simple, wish I'd thought about it!
I also put in a auto re-direct on the blank page.

Many thanks.

Kenny