I have a directory of text files on IIS. I would like this directory to be hidden.
I have set the web.config as follow:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <authorization> <deny users="*" /> <!-- Denies all users --> </authorization> </system.web> </configuration>
But I can still see a full directory listing of the files, as well as access the files over the web.
What am i setting wrong?
I have tried this too:
<system.webServer> <security> <authorization> <remove users="*" roles="" verbs="" /> <add accessType="Allow" roles="Administrators" /> </authorization> </security> </system.webServer>
But that too didn't help me