“`”
目前常用的防盗链方法主要有两种:
(1) 设置Referer:适合不想写代码的用户,也适合喜欢开发的用户(Referer是HTTP协议中的请求头,在跨页面访问的时候会带上。需要看看浏览器请求的Referer是http://还是https://,一般是http://)
(2) 签名URL:适合喜欢开发的用户
详细参见:<a class=""url"" href=""https://yq.aliyun.com/articles/57931"" target=""_blank"">https://yq.aliyun.com/articles/57931</a>
<pre><code> "“`
Was this helpful?
0 /
0