How to disable directory browsing

How to disable directory browsing


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!

    • Related Articles

    • Directory Privacy

      To create protection for a directory of your hosting with a Username and Password, follow the steps: In your cPanel, select "Directory Privacy" in the Files section. Then select the directory you want to assign privacy to. Complete the fields as ...
    • How to restrict Directory Access by IP address

      In order to secure your "admin area" from hackers, we recommended you to allow access only from your selected IP to your admin directory. You just need to create an .htaccess file in the directory where you want to restrict access by IP Address. For ...
    • JetBackup 5 - Home Directory : How to restore file and folders

      Jetbackup 5 has a new interface, with better usability and new options, making it easier to search for specific items. In this article we will see how to restore files and folders from a cPanel account. First we must access cPanel and navigate to the ...
    • Leech Protection

      Here's how to use cPanel's Leech Protect feature to prevent users from disclosing or publishing their passwords in a restricted area of your website. This feature will redirect accounts that have been compromised with a chosen URL (and suspend them ...
    • How to add a domain redirect

      Step 1 - Login to cPanel Log in to your dashboard cPanel and go to the Domains section, and look for the Redirects item. Step 2- Add redirect 1- On this screen choose between a redirection type Permanent (301) Temporary (302) 2- In “https?://(www.)?” ...