---
title: How to Disable Directory Browsing Using the htaccess Rule
description: "For security purposes, you should disable directory browsing on your website so no one can see the files/directories of your website. You can disable Directory Browsing by adding the below line to your dot htaccess file. ```markup Options -Indexes ```"
url: "https://www.aeserver.com/support/how-to-disable-directory-browsing-using-the-htaccess-rule/"
updated: "2025-01-05"
category: htaccess Tutorials
---

# How to Disable Directory Browsing Using the htaccess Rule

For security purposes, you should disable directory browsing on your website so no one can see the files/directories of your website.

You can disable Directory Browsing by adding the below line to your dot htaccess file.

```markup
Options -Indexes
```
