How to disable directory browsing

Á

Álvaro Moura

Last updated on Jul 9, 2026

For security purposes, we recommend that you disable navigation in the directory on your website

so that you cannot see the files/pastes of your website.

First you need to access your cPanel

Step 1

After accessing your cPanel, go to the Files section and search for the item "File Manager"



Step 2

You can disable navigation in the directory in question by adding the line below to your .htaccess file:

  1. Options -Indexes

Next, you will see this other fabric:


Then just click on Save to change, on the top edge directly of your fabric.

Step 3

If you cannot find your .htaccess files, they may be set to "hidden files" and just check the option to show hidden files in your manager, following these steps:

Go to the top bar of the file manager and click on "Settings"


A Janela will be open, just check the option to Show hidden files


I hope it helped you!