Solved

Create a .htaccess file to limit directory browsing

Posted on 2013-11-12
1
224 Views
Last Modified: 2013-11-14
Hello

I need to limit directory browsing on some folders and need to create the .htaccess file to do it. I have been advised to use the line

Options -Indexes

What else do I need to add in the file. Is it just the one line?

I will also be using permissions on the htaccess file of 0444. We just need to limit directory browsing only. Some of the folders we are going to use it on contain images for the website. This was a recommendation as a result of a PCI scan. There was also the suggestion of using a blank index.html file set to 0444. Not sure which is the best option here.
0
Comment
Question by:gregnvt
[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
1 Comment
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39643161
I would suggest you do both.  Here's the Apache page on Options: http://httpd.apache.org/docs/2.2/mod/core.html#options

Second thought.  Permissions have to be 0644 for the owner to write the files.  If they don't need to be changed, then they could be set to 0444.
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

688 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