How to make IIS7 stop serving a folder?

前端 未结 3 768
挽巷
挽巷 2020-12-14 11:34

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?

3条回答
  •  醉酒成梦
    2020-12-14 11:45

    The proper way to do that is using this:

    
       
           
              
                   
                       
                   
               
           
       
    
    

    This allows you to still access files located there from the IUSR account, but prevents actual requests for files there from being filled directly.

    Note that this will block files in that directory, and any subdirectories, no matter where that directory occurs - even if it, itself, is a sub-directory of something else.

提交回复
热议问题