ijd8.COM

A simple blog for an old Ma Nong.

关于BAE BCS url签名和防盗链

Permalink

用到云存储,自然要考虑验证、识别访问者信息和防盗链措施。BCS 的URL 签名可以验证及识别访问者的身份,可通过put_acl 接口在policy 中进行相关设置即可防盗链。

URL 签名里有一个time 参数对一些资源下载功能很重要,如可限制过期时间。

URL 签名文档 http://developer.baidu.com/wiki/index.php?title=docs/cplat/stor/access/signed-url

put_acl 的文档 http://developer.baidu.com/wiki/index.php?title=docs/cplat/stor/api/acl

Write a Comment

Submit Comment Login
Based on Golang + fastHTTP + sdb | go1.16.7 Processed in 0ms