Refer to the below steps to disable the directory listing globally in WHM:
1) Login to WHM.
2) In the search box type the Apache Configuration.
3) Click on Apache configuration.
4) Then click on the Global Configuration.
5) Untick Indexes option which is present under “Directory ‘/’ Optionsâ€.
6) Click on the Save icon.
7) After that Rebuild Apache conf.
In this way, you can disable the directory listing in WHM.
1) Login to WHM.
2) In the search box type the Apache Configuration.
3) Click on Apache configuration.
4) Then click on the Global Configuration.
5) Untick Indexes option which is present under “Directory ‘/’ Optionsâ€.
6) Click on the Save icon.
7) After that Rebuild Apache conf.
In this way, you can disable the directory listing in WHM.