java - 七牛设置防盗链之后手机端如何正常访问?
黄舟
黄舟 2017-04-18 10:26:38
0
1
451

1 我在七牛后台添加白名单(域名为我自己的主站域名)和referer不能为空,这样浏览器就不能正常访问,达到了一个目的,但是右键还是能迅雷下载,我不想资源被随便下载?
2 添加白名单之后,手机端也访问不了,这是不是由于手机端的请求并没有相对应域名导致的,出现这种问题如何处理?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
大家讲道理

1. Xunlei cannot be prevented by referer anti-hotlinking, so you need to use timestamp anti-hotlinking.
2. The essential principle of anti-hotlinking is judged by the referer header information carried by the http request. If it cannot be accessed, it means that the referer header is carried and is not included in the whitelist rules.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template