How to make IIS7 stop serving a folder?
问题 I know that by defualt IIS won't server App_Data or bin folders content to the public. How to set one more folder to don't server to public? 回答1: The proper way to do that is using this: <configuration> <system.webServer> <security> <requestFiltering> <hiddenSegments> <add segment="My_Directory" /> </hiddenSegments> </requestFiltering> </security> </system.webServer> </configuration> This allows you to still access files located there from the IUSR account, but prevents actual requests for