Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
303 views
in Technique[技术] by (71.8m points)

前端如何实现图片防盗链的破解

例如:http://img.m9vv.com/resour/xg...
整个网站无法直接打开,需要先访问他的主域名:http://www.m9vv.com/1178.html
后台应该是做了refer的判断,前端页面如何绕过这个判断,通过js实现防盗链的破解呢?
尝试过iframe 的方法,然并卵,想伪造refer可是发现ActiveXObjects是ie的方法,网上还有种桥接的方法,可是好像需要后台配合的样子,有这方面经验的同学么?尝试过dom操作从写img的src属性,可这种方式实在不放心


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

<meta name="referrer" content="never">


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...