Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8849549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:40:54+00:00 2026-06-14T12:40:54+00:00

It seems like it would be a good idea to completely stop people from

  • 0

It seems like it would be a good idea to completely stop people from being able to view directory listings (to improve security and protect content) and from the reading I’ve done I’ve found two ways to do it:

Way #1: Put a blank index.php/index.html file in each directory
Way #2: Put the line Options -Indexes in a .htaccess file in each directory

Which one of those is preferable? Or, is there a better way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:40:55+00:00Added an answer on June 14, 2026 at 12:40 pm

    Use Options -Indexes (at root, not directory level) when you don’t want any directory listings exposed.

    Use the blank index.html when some directories are ok to list, but some are to be kept private

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to hear from people who have real world programming experience in
At first glance it seems like a good idea to let the hard disk
Seems like it would be better if you did commit followed by merge. I'm
This seems like it would be fairly simple, but I've been unable to find
This seems like it would be a common issue to be but I don't
So I have a Rails app (which in this case seems like it would
Executor seems like a clean abstraction. When would you want to use Thread directly
I have an entity and it seems like using DateTime as the Id would
I would like to step through Ruby code at runtime, but it seems difficult
I would like to tile a CGImage across a CALayer, but it seems to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.