Skip to content
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

fetch 防盗链图片设置referer #130

Closed
amazing-gao opened this issue Mar 4, 2015 · 1 comment
Closed

fetch 防盗链图片设置referer #130

amazing-gao opened this issue Mar 4, 2015 · 1 comment

Comments

@amazing-gao
Copy link

使用fetch 下载 http://img3.laibafile.cn/p/m/203955675.jpg
发现http 头不设置referer: 'http://bbs.tianya.cn/post-develop-1982790-1.shtml'
下载图片为防盗链的图片。
使用wget 设置referer即可下载

但是我手动设置了referer头还是下载了防盗链的图片。
请问七牛fetch时是不是没有使用我设置referer

@longbai
Copy link
Contributor

longbai commented Mar 5, 2015

fetch 无法设置 refer的, 如果用refer 有几个方案1 把七牛IP 或者UA 加入白名单 2 自己下载后上传

@longbai longbai closed this as completed Mar 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants