vendor/aliyuncs/oss-sdk-php/samplesBucketReferer.php

Functions

putBucketReferer()

putBucketReferer(\OSS\OssClient  $ossClient, string  $bucket) : null

设置bucket的防盗链配置

Parameters

\OSS\OssClient $ossClient

OssClient实例

string $bucket

存储空间名称

Returns

null

getBucketReferer()

getBucketReferer(\OSS\OssClient  $ossClient, string  $bucket) : null

获取bucket的防盗链配置

Parameters

\OSS\OssClient $ossClient

OssClient实例

string $bucket

存储空间名称

Returns

null

deleteBucketReferer()

deleteBucketReferer(\OSS\OssClient  $ossClient, string  $bucket) : null

删除bucket的防盗链配置 Referer白名单不能直接清空,只能通过重新设置来覆盖之前的规则。

Parameters

\OSS\OssClient $ossClient

OssClient实例

string $bucket

存储空间名称

Returns

null