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.
Login to your server WHM as root.
WHM Main >> Service Configuration >> Apache Configuration >> Global Configuration
Under Directory ‘/’ Options >> uncheck Indexes >> Save >> Restart Apache
Our Recommended VPS Hosting