For security reason, it is recommended that you disable directory listings / indexing on your server. Apache default configuration comes with this feature enabled but its always a good idea to get it disabled unless you really need it.
When this option is enabled, user can see the list of files / folder of a directory when no index file is present.
With Apache listings / indexing option disabled, user will not be able to see content of a directory in absence of a index file.
Here is how you can disable this on a cPanel server.
Step 1
Login to your server WHM as root.
Step 2
Navigate to:
WHM Main >> Service Configuration >> Apache Configuration >> Global Configuration
Step 3
Under Directory ‘/’ Options >> uncheck Indexes >> Save >> Restart Apache
Done!!