> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.ex2.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to disable browsing on a directory with htaccess?

# Here's how to disable browsing on a directory with htaccess

For security purposes, we recommend that you disable directory browsing on your website so no one can see the files/folders of your website.

You can disable Directory Browsing by adding this line to your [.htaccess file.](https://help.ex2.com/en/article/what-is-the-htaccess-file-and-what-is-it-used-for-1mgswq0/?bust=1784826921560)

`Options -Indexes`
