How to prevent image hotlink from your ASP.NET site?

后端 未结 4 1414
清酒与你
清酒与你 2021-02-06 14:01

What is the best/simplest way to prevent people hotlinking to images from my hosted ASP.NET website? I don\'t need to prevent all images/resources from hotlinking, I just want t

4条回答
  •  温柔的废话
    2021-02-06 15:02

    Simplest way to do this is with a UrlRewrite in IIS 7.0.

    https://help.maximumasp.com/KB/a738/using-url-rewrite-to-prevent-image-hotlinking.aspx

    
    
        
            
                
    
    
    
      
                            
                            
      
      
    
                
            
        
    

提交回复
热议问题