图片防盗链 怎么破解?
本帖最后由 baihaideng 于 2022-1-4 09:02 编辑内容:http://www.7y7.com/xingzuo/21/630721.html
图片:https://pic.7y7.com/Uploads/Editor/2021-12-30/61cd79ec6a5b1_550_0.jpg
访问html图片正常显示
直接访问图片,显示403错误
采集的图片用原网站的,全部403....
分别加上以下各种代码全部无效
<meta name="referrer" content="no-referrer">
<img referrer="no-referrer|origin|unsafe-url" src="https://pic.7y7.com/Uploads/Editor/2021-12-30/61cd79ec6a5b1_550_0.jpg"/>
调用对方的图片,不是下载...
怎么破?
我刚试了火车头,采集正常
本帖最后由 baihaideng 于 2022-1-4 09:09 编辑
hl530 发表于 2022-1-3 16:35
我刚试了火车头,采集正常
我的意思是不采集他的图片,还是用他的图片源路径,然后图片就不显示 那估计得 自己弄个 反向代理 你搜索下 Request URL: https://pic.7y7.com/Uploads/Picture/2021-06-15/60c872af930e6.jpg
Request Method: GET
Status Code: 200 OK
Remote Address: 106.60.70.100:443
Referrer Policy: no-referrer-when-downgrade
Accept-Ranges: bytes
Age: 1
Connection: keep-alive
Content-Length: 167632
Content-Type: image/jpeg
Date: Mon, 03 Jan 2022 16:05:08 GMT
ETag: "60c872af-28ed0"
Last-Modified: Tue, 15 Jun 2021 09:28:15 GMT
Server: nginx
X-Via: 1.1 PSfjfzsx3gh125:2 (Cdn Cache Server V2.0), 1.1 zhoudxin93:1 (Cdn Cache Server V2.0), 1.1 dx67:25 (Cdn Cache Server V2.0)
X-Ws-Request-Id: 61d31eb4_dianxin68_79458-33031
Accept: image/webp,image/apng,image/*,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Cache-Control: no-cache
Connection: keep-alive
DNT: 1
Host: pic.7y7.com
Pragma: no-cache
Referer: http://www.7y7.com/
Sec-Fetch-Dest: image
Sec-Fetch-Mode: no-cors
Sec-Fetch-Site: cross-site 飘云 发表于 2022-1-4 00:05
Request URL:
Request Method: GET
Status Code: 200 OK
写成PHP调用?还是?
页:
[1]