phpcodec Posted October 22, 2008 Share Posted October 22, 2008 My site has a series of folders and i want these to be hidden by not showing a directory listing of all the files, how can i achieve this without placing a index page in each folder? Link to comment https://forums.phpfreaks.com/topic/129543-hide-directory-listing/ Share on other sites More sharing options...
JasonLewis Posted October 22, 2008 Share Posted October 22, 2008 You can use .htaccess I believe. Check out this article. Link to comment https://forums.phpfreaks.com/topic/129543-hide-directory-listing/#findComment-671642 Share on other sites More sharing options...
thebadbad Posted October 22, 2008 Share Posted October 22, 2008 That article is not what he want, I'm afraid. When using Apache, you can turn off directory listings by putting this in a .htaccess file in the web root: .htaccess Options -Indexes Link to comment https://forums.phpfreaks.com/topic/129543-hide-directory-listing/#findComment-671684 Share on other sites More sharing options...
lpglycerine Posted October 22, 2008 Share Posted October 22, 2008 Edit: Sorry, my attention span didn't allow me to read your whole post =) Link to comment https://forums.phpfreaks.com/topic/129543-hide-directory-listing/#findComment-672306 Share on other sites More sharing options...
mummana Posted November 6, 2008 Share Posted November 6, 2008 # to prevent the directory listing IndexIgnore * Link to comment https://forums.phpfreaks.com/topic/129543-hide-directory-listing/#findComment-683984 Share on other sites More sharing options...
steviewdr Posted November 6, 2008 Share Posted November 6, 2008 In a htaccess file, put: Options -Indexes -steve Link to comment https://forums.phpfreaks.com/topic/129543-hide-directory-listing/#findComment-684000 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.