How to disable directory browsing

How to disable directory browsing


For security purposes, we recommend that you to 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:

  1. Options -Indexes


    • 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 ...
    • How to protect a folder with username and password

      You can password lock a directory using cPanel's "Directory Privacy" option. 1. Log in to your cPanel account, see how to access cPanel at: https://help.scriptcase.net/portal/en/kb/articles/first-steps-with-the-hosting-access 2. In the "Files" ...
    • How to perform a publication in your hosting service?

      If you already know how to implement applications with Scriptcase RAD, you can publish your applications generated with your Scriptcase in your hosting account. Step 1. Upload the app to your hosting account - From an unhosted Scriptcase: - First, ...