开发者

Preventing downloading a lot of your public S3 files?

开发者 https://www.devze.com 2023-02-19 03:09 出处:网络
Is there any kind of protection for hosting files (images) in S3 and preventing t开发者_如何学编程hat someone download zillion times a file just to damage you (AWS billing)?

Is there any kind of protection for hosting files (images) in S3 and preventing t开发者_如何学编程hat someone download zillion times a file just to damage you (AWS billing)?

Thanks


Services such as twitpic do this by:

  • Removing public/anonymous access to the files
  • Signing an access request with a short expiry time. (eg 30 seconds or so).
  • Providing the signed url to the end user.

This means that someone can access the file, but they have to retrieve it before the request expiry time.

Of course, it is then up to you to not sign requests from people who are abusing your site.

0

精彩评论

暂无评论...
验证码 换一张
取 消