Solved

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

Posted on 2001-09-12
3
170 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
[X]
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
  • 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 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