I use IIS8 and I'm trying to hide web.config from the files list on my site but I just can't seem to find a solution for that. Can you help me please? :)
Description. Directory browsing allows the contents of a directory to be displayed upon request from a web client. If directory browsing is enabled for a directory in IIS, users could receive a web page listing the contents of the directory.
Go to your own Virtual Host settings and look for "Options Indexes" If "Options Indexes" exists, modify it to "Options -Indexes" (add a "-" sign before "Indexes") or else add "Options -Indexes" as a new line. Restart your apache web server.
Right click the file and mark it as hidden. It will stop showing up in IIS directory browsing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With