Can I use wildcards in the web.config location path attribute?

后端 未结 3 654
心在旅途
心在旅途 2020-12-19 00:50

In IIS 7 I try to deny access to all files with the extension .xml for all users.

I tried the following setting in my web.config file:



        
3条回答
  •  太阳男子
    2020-12-19 01:03

    Try this:

    
        
            
                
            
        
    
    

    By the way you could alternatively store all of your xml files within the App_Data directory. Storing files of any type in this directory will not be served to the web.

提交回复
热议问题