Solved

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

Posted on 2001-09-12
3
167 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

785 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