Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor
Is this the best way to protect directory's contents from being listed westman7 msg:3964825 6:27 pm on Aug 3, 2009 (gmt 0) What I'm using now is a line inside the htaccess file:
This prevents people from viewing the listings of directory if it doesn't have an index file inside... which the "images" dir doesn't have for example. Yeah I know I can always add an index file, but it just seems artificial to me.
jdMorgan msg:3964884 8:06 pm on Aug 3, 2009 (gmt 0)
You could use Options -Indexes to return a 403-Forbidden response to all directory requests unless that directory contains an index file.
This would prevent not only the files in the directory from being viewed, but also the directory itself.
I don't feel it's greatly better than what you've got, just a different method.
westman7 msg:3966327 6:12 pm on Aug 5, 2009 (gmt 0)
Thank you very much... yet again!