0

I am a college student building a website for a local band. I've recently noticed that when I navigate to the webpage folder using the domain (https://insert website domain.com/folder name) it show the "Index of" page and allows me to navigate the resources of the webpage. Is there a way to disable this through code, or is this a hosting issue?

1 Answers1

0

You have at least two options:

  1. Add an index page in the folder, and the server will display that page instead. The name for the index page depends on the webserver you are using. For instances, most webservers will try to find index.html. You can also configure it.
  2. Disable directory listing in your webserver settings. The specific instructions strictly depend on the webserver you use.
Simone Carletti
  • 173,507
  • 49
  • 363
  • 364