Start the application named: IIS Manager.
On the IIS Manager application, select your website.
On the right part of the screen, access the option named: Directory browsing.
On the top right part of the screen, click on the Disable option.
Optionally, use the command-line to disable the directory browsing feature.
In our example, we disabled the directory browsing feature for a website on the IIS server.
To test the installation, open the Chrome browser and try to access a directory.
In our example, the following URL was entered in the Browser:
The IIS server will forbid the directory browsing.
If the directory browsing feature is enabled, the IIS server will allow the user to browse the directory.
Optionally, you may use the CURL command of a Linux computer to test the configuration.
Here is the command output.
Congratulations! You disabled the directory browsing feature on the IIS server