当前位置:首页>开发>正文

Nginx怎么设置防盗链啊 请教IIS图片防盗链方法

2023-04-13 01:24:35 互联网 未知 开发

 Nginx怎么设置防盗链啊 请教IIS图片防盗链方法

Nginx怎么设置防盗链啊?



常用的方法是在server或者location段中加入!
valid_referers none blocked www.abc.com abc.com
方法不止一种,你百度一下,很多

请教IIS图片防盗链方法

图片防盗链方法代码
相信很多和我一样空间有限的朋友很怕图片被盗链,就那么几个连接数给别人一盗自己的网站就完了。其实实现防止盗链的方法很简单,在CSS中添加以下代码:
程序代码
img {
filter:expression(
this.不能去掉 ? "" :
(
(!this.complete) ? "" :
this.runtimeStyle.filter = ("progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" this.src ")")
String(this.不能去掉 = true).substr(0, 0)
(this.src = "图片地址").substr(0, 0)
)
)
}

最新文章