How to disable directory listing in cPanel. Step by step guide.

  Web Hosting

cPanel has powerful capabilities to help you disable directory listing for your files of a website.

Other articles on the web may call it directory browsing, it is one and the same thing.

Steps to disable directory listing.

Option 1: Disable Directory Listing in cPanel Using Indexes.

  1. Log into cPanel.
  2. In the ADVANCED SECTION, click on Indexes. using indexes
  3. Click the directory whose index settings needs to be changed. select folder to disable directory listing
  4. Select No Indexing to disable directory listing. select no indexing There are four options to select from.
    Default System Indexing: It is set by the hosting service provider. This is the default option.
    No Indexing: Use this option to disable directory listing.
    Standard Indexing: Enables directory listing. Website visitors can see the name of the directories on your website.
    Fancy Indexing: This option will enable the directory listing. Website visitors can see the name and description of the files and directories under your indexed directory.
  5. Click on Save button to finish

Option 2: Disable Directory Listing in cPanel Using File Manager (File Permissions).

  1. You must start by logging into your cPanel.
  2. Click on File Manager under FILES section in your cPanel.
  3. Most times File Manager will open in a new tab. Right click on the directory/folder that should be made private.
  4. From the pop-up menu, click on Change Permissions. using file manager
  5. Edit permissions to read 771 and click on Change Permission.
    change file permission to disable directory listing
  6. Click on Change Permissions.

Option 3: Using File Manager (Manage Indices).

  1. I assume that you are already logged into your cPanel and opened File Manager as shown in Method 2 above.
  2. Right click on the directory/folder that should be made private.
  3. Click on Manage Indices. This will open Indexes interface in a new tab. using-manage indices
  4. Click on No Indexing option and click on Save.

Benefits.

  1. Protect your website’s files from unauthorized access.
  2. Reduces chances of your files being attacked by hackers.
  3. Puts you in control of the files you want to share with the rest of the world.
  4. Can help hide duplicate content from your website thus boosting your SEO score.

All web hosting accounts hosted at Shujaa Host are managed via cPanel thus this feature is offered out of the box. If you have trouble enforcing this settings, contact our support today.

PS: If you haven’t tried our web hosting services, consider checking out our hosting packages.

Read more about computer directories here.

LEAVE A COMMENT