Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide web.config from directory browsing?

Tags:

iis

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? :)

like image 884
Aradmey Avatar asked Oct 13 '14 21:10

Aradmey


People also ask

What is IIS directory browsing?

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.

How do I check if directory browsing is enabled?

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.


1 Answers

Right click the file and mark it as hidden. It will stop showing up in IIS directory browsing.

like image 114
govin Avatar answered Sep 18 '22 23:09

govin