I just wanted to know how to stop user from viewing folders without index pages using PHP or mod rewrite?
All of these answers are good but I will rate the one with the most votes.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Configure your web server to not automatically serve directory indexes.
Using Apache, this is done with the
-Indexesoption:You can also put this
Options -Indexesdirective in an.htaccessfile in the specific directory.