Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to prevent web users from being able to list the content of a directory?

Posted on 2001-09-12
3
168 Views
Last Modified: 2010-03-04
Hi,

I have a PHP application residing on a server. The PHP source files are stored in directories and sub directories. I would like to make sure that the web users CANNOT list the content of these directories containing the source files.

I saw some .htaccess files in the httpd.conf file. But I don't know how to use them, nor if they are the answer to my problem.

Any idea?

Stephane/Stockholm

0
Comment
Question by:stephaneeybert
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
svs earned 50 total points
ID: 6477779
Turn 'Indexes' option off -- server-wide or locally.  
(See description of 'Options' configuration file directive
for more information.)
0
 

Author Comment

by:stephaneeybert
ID: 6486014
You should post a comment instead of an answer, so that others would have the possibility to participate in this exchange of suggestions.

0
 

Author Comment

by:stephaneeybert
ID: 6486015
Have you a running example of your suggestion?
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question