View Full Version : htaccess question
I tried a search but couldnt find it.
Anyone know what to put in .htaccess to stop a directory listing from showing up if there is no index file?
Thanks,
Kong
Pinhead
07-11-2001, 04:47 PM
Actually, the easiest way is to chmod the directory so that only you have read permission. This will prevent others from listing the directory contents.
William
07-11-2001, 04:56 PM
<font face="Verdana, Arial" size="2">Originally posted by Pinhead:
Actually, the easiest way is to chmod the directory so that only you have read permission. This will prevent others from listing the directory contents.</font>
No, the easiest way is to add Options -Indexes to your toplevel .htaccess.
toker
07-11-2001, 08:11 PM
Actually its in the server config and you host can remove open directory browsing or you can use a index.cgi to bounce them out.
I personally drop a fake 404 into every image or other browsable dir.
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.