---
title: How do I turn directory browsing (Indexes) on or off in DirectAdmin?
description: Directory browsing, also called directory indexing, is when a folder without an index file shows a list of its contents to visitors. This can expose files you did not mean to share, so it is usually best turned off. This…
url: "https://disoh.com/pt/suporte/how-do-i-turn-directory-browsing-indexes-on-or-off-in-directadmin/"
updated: "2026-07-22"
category: Webhosting
---

# How do I turn directory browsing (Indexes) on or off in DirectAdmin?

Directory browsing, also called directory indexing, is when a folder without an index file shows a list of its contents to visitors. This can expose files you did not mean to share, so it is usually best turned off. This guide explains how to control it in DirectAdmin.

## Why this matters for security

If someone visits a folder that has no index.html or index.php, and indexing is on, they see a listing of every file in that folder. That can reveal backups, scripts, or documents you would rather keep private. Turning indexing off shows an error instead of the list.

## Controlling indexing in DirectAdmin

1. Log in to DirectAdmin.
2. Open **Account Manager > Directory Privacy** or the **Indexes** tool if present.
3. Select the folder you want to control.
4. Set indexing to off (no indexing) for privacy, or on if you deliberately want a listing.
5. Save.

## Doing it with .htaccess

You can also control this in your .htaccess file. Adding *Options -Indexes* disables directory listings for that folder and everything beneath it, while *Options +Indexes* enables them.

## Best practice

- Keep indexing off for most folders.
- Ensure important folders have an index file as well.
- Only enable listings for folders where a public file list is intended.

## Troubleshooting

- **Still seeing a file list:** confirm the setting applied to the right folder and clear your cache.
- **Getting a 403 error unexpectedly:** the folder may need an index file.

## Need help?

If you are unsure which folders to protect, our support team can advise over live chat.
