These are basic considerations and features. The exact implementation may vary depending on your server environment (Apache, Nginx, IIS, etc.), your website's technology stack (static site, CMS like WordPress, etc.), and specific requirements.
Despite the risks, open directories aren't always a mistake. They are frequently used in: index of parent directory uploads
For developers: Always disable directory indexing on any folder that handles user uploads. Add a default index.html or index.php to every subdirectory during your build process. These are basic considerations and features