Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果你给某人一个预签名的 URL,有什么办法可以阻止他们循环下载对象并增加你的数据费用?有一个“请求者付费”功能,但只有在他们有自己的帐户时才有效。
当您使用 S3 预签名 URL 功能时,您可以控制 URL 的有效时间。
PutObjectPresignRequest presignRequest = PutObjectPresignRequest.builder() **.signatureDuration(Duration.ofMinutes(10))** .putObjectRequest(objectRequest) .build();
因此,如果您有此类顾虑,请不要将其打开很长时间。