Is it possible to configure a location in Web.config to only allow local connections

后端 未结 5 686
余生分开走
余生分开走 2020-11-30 08:57

I\'ve got a page in an ASP.Net app (its Mvc actually but not important) and I would like to only allow connections to this page from the local machine. I would love to do s

5条回答
  •  粉色の甜心
    2020-11-30 09:17

    I found this to be helpful as well, if you want to specify a range of IP addresses. You can add the following code block to you web.config

    
        
            
                
                  
                    
                      
                    
                          
                  
            
        
    
    

提交回复
热议问题