How To Disable Directory Browsing in WordPress

By default, Apache web servers enables directory browsing. It means, whenever the web server is unable to find an index file ( index.php or index.html ), it automatically displays the list of files and folders within that directory.