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.
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