Skip to content

[软技能] 第95天 你知道什么是图片防盗链吗?防盗链怎么实现呢?说说你的方法 #961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
haizhilin2013 opened this issue Jul 19, 2019 · 3 comments
Labels
软技能 软技能

Comments

@haizhilin2013
Copy link
Collaborator

第95天 你知道什么是图片防盗链吗?防盗链怎么实现呢?说说你的方法

@haizhilin2013 haizhilin2013 added the 软技能 软技能 label Jul 19, 2019
@ghost
Copy link

ghost commented Jul 20, 2019

加个请求头检测

@impeiran
Copy link

referer识别

@censek
Copy link

censek commented Jan 15, 2020

盗链 是指在自己的页面上展示一些并不在自己服务器上的内容。通常的做法是通过技术手段获得它人服务器上的资源地址,绕过别人的资源展示页面,直接在自己的页面上向最终用户提供此内容。

防盗链 就是防止盗链。

在 http 协议中,如果从一个页面跳到另一个页面,header 字段里面会带个 Referer。图片服务器通过检测 Referer 是否来自规定域名,来进行防盗链。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
软技能 软技能
Projects
None yet
Development

No branches or pull requests

3 participants