How to Disable Directory Listing in cPanel

Preventing directory listings is very simple and pretty useful. Its useful when, for example, you have any sort of directory containing images or  '.zip' archive files. Alternatively you can enable directory listings, to do either of these please follow the steps below.

  1. Log into CPanel
  2. Click on indexes, This will be located under advanced features
  3. Select the directory on which you like to change the index setting - For example public_html 
  4. A new window will open and here you can click ‘No Indexing’ option to disable directory listing. 

     

    Here you can see four types of indexing methods.

    Default System Indexing: This is the default option set by a hosting provider (We default to no indexing).

    No Indexing: This option allows to disable directory listing. The main reason to disable directory listing is to enable privacy in order to reduce the chances of the files being attacked.

    Standard Indexing: This option will enable the directory listing. The user can see the name of the directories.

    Fancy Indexing: This option will enable the directory listing.  The user can see the name and description of the files and directories under your indexed directory.

    5) Click Save.

If you should have any issues or have any questions regarding this topic please contact us via a support ticket (open a ticket) with our hosting department and we will get back to you as soon as possible.

  • cPanel, file manager
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Optimising your databases

As you are editing databases they end up a bit like Swiss cheese, full of holes! Every now and...

What is a cron job and how to set one up

We all have 'those' jobs we have to do every now and again (washing the car, tidying the house...

What PHP version is best to use?

Most software that your website runs will need to use PHP to interact with databases and create...

Powered by WHMCompleteSolution