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?
Asked
Active
Viewed 67 times
0
-
2it's because everyone has permission to view that folder. – technophyle Aug 31 '22 at 20:29
-
So is this something where I would attempt to change the permissions of the folder through the hosting service? – Cory Eheart Aug 31 '22 at 20:45
-
yes, just change the permission of the folder on the hosting server. – technophyle Aug 31 '22 at 20:48
1 Answers
0
You have at least two options:
- 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. - Disable directory listing in your webserver settings. The specific instructions strictly depend on the webserver you use.

Simone Carletti
- 173,507
- 49
- 363
- 364