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

  • SEARCH
  • Home
  • 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 8608793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:42:24+00:00 2026-06-12T03:42:24+00:00

In htaccess I am blocking directory browsing by using the following code. # directory

  • 0

In htaccess I am blocking directory browsing by using the following code.

# directory browsing
Options All -Indexes

However, I want people to have access to a certain folder, let’s say the folder is called pictures, so the folder is at mysite.com/pictures.

How do I give access to that folder/directory, but keep the rest blocked?

  • 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-12T03:42:25+00:00Added an answer on June 12, 2026 at 3:42 am

    Put a .htaccess file into your pictures folder, with this line:

    Options Indexes
    

    (or “+Indexes”, which is the same.) That should take care of it because child .htaccess files override parents.

    From your question it’s not clear that you understand the limitations of “Options Indexes”. This does not “block” access to a directory; it merely turns off an auto-generated directory listing. Knowing a filename, anyone can still access the resource whether Indexes are enabled or not.

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

Sidebar

Related Questions

My htaccess have this code # # Apache/PHP settings: # Options -Indexes Options +FollowSymLinks
I'm trying to filter all clients (using .htaccess) who try to access addresses containing
I want to deny access to multiple PHP files in directory /all/cstl/ . My
Using .htaccess all addresses are rewritten to index.php Index.php needs to then work out
Using .htaccess, I need to redirect all requests from http://www.domain, http://domain, https://domain to; https://www.domain.com
I have an .htaccess file using mod_rewrite to redirect URLs from the old website
htaccess I have such a code ErrorDocument 404 http://www.xxx.com/410.html It redirects to the 410.php
I have an .htaccess file that authenticates users against LDAP using mod_auth_ldap . My
I have placed .htaccess file in my server's root folder with following content: Redirect
I have the following .htaccess in the /backend folder: RewriteEngine On RewriteBase /backend RewriteRule

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.