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? Quote 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. Quote 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 Quote 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 =) Quote 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 * Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/129543-hide-directory-listing/#findComment-684000 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.