设置Referer过滤规则 功能介绍 设置Referer过滤规则。通过设置过滤策略,对访问者身份进行识别和过滤,实现限制访问来源的目的。 URI PUT /v1.0/cdn/domains/{domain_id}/referer 表1 路径参数 参数 是否必选 参数类型 描述 domain_id
https://cdn.myhuaweicloud.com/v1.0/cdn/logs?query_date=1502380500000&domain_name=www.example.com&page_size=10&page_number=1&enterprise_project_id=ALL
interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00) domain_name 是 String 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下
DomainsWithPort object 域名信息 表5 DomainsWithPort 参数 参数类型 描述 id String 加速域名ID。 domain_name String 加速域名。 business_type String 域名业务类型,若为web,则表示类型为网站加速;若为downloa
云服务:函数工作流FunctionGraph。 持续时间:永久。 单击“下一步”,在“选择策略”页面勾选“CDN RefreshAndPreheatAccess”策略。 单击“下一步”,选择授权范围。可根据业务需求选择“所有资源”或“全局服务资源”。 单击“确定”,完成委托创建。 创建事件函数
如下图所示: 原因:响应头不支持“POST”请求方法。 解决办法:修改HTTP header配置。添加一条取值为“POST”、参数为“Access-Control-Allow-Methods”的规则。配置方法详见HTTP header配置。
如果在OBS桶里面配置了Referer的黑白名单防盗链,CDN的访问会按照OBS桶的Referer规则生效吗? 这种配置是不生效的,CDN无法预知OBS桶的配置,请前往防盗链配置了解如何配置CDN的Referer防盗链。 父主题: 安全相关
用户无法访问到加密文件。 解决方案:将公有桶中的加密文件转移到私有桶中,再接入CDN加速。 如果您的OBS桶是私有桶,需要为“CDNAccessPrivateOBS”委托配置“kms:cmk:get”和“kms:dek:crypto”权限。如此,CDN才能读取OBS私有桶中的K
和沟通的一组服务器的地址,应用于网站,电子邮件,FTP等。 CNAME记录 CNAME记录是指域名解析中的别名记录(Canonical Name),允许将多个域名映射到同一个域名。 例如: 您有一台服务器存放了一些文件,可以通过file.example.com访问该资源,但是希望通过另一个域名data
[]{}()-_;~/。 默认区分大小写,关闭“区分大小写”开关后,大写和小写将认为是同一个值。 文件名称 客户端请求的文件的名称,例如:name1。 不涉及 包含 不包含 支持输入多个值 默认区分大小写,关闭“区分大小写”开关后,大写和小写将认为是同一个值。 文件后缀 客户端请求
exceptions import exceptions from huaweicloudsdkcdn.v2 import * if __name__ == "__main__": # The AK and SK used for authentication are hard-coded
exceptions import exceptions from huaweicloudsdkcdn.v2 import * if __name__ == "__main__": # The AK and SK used for authentication are hard-coded
exceptions import exceptions from huaweicloudsdkcdn.v2 import * if __name__ == "__main__": # The AK and SK used for authentication are hard-coded
exceptions import exceptions from huaweicloudsdkcdn.v2 import * if __name__ == "__main__": # The AK and SK used for authentication are hard-coded
exceptions import exceptions from huaweicloudsdkcdn.v2 import * if __name__ == "__main__": # The AK and SK used for authentication are hard-coded
exceptions import exceptions from huaweicloudsdkcdn.v2 import * if __name__ == "__main__": # The AK and SK used for authentication are hard-coded
exceptions import exceptions from huaweicloudsdkcdn.v2 import * if __name__ == "__main__": # The AK and SK used for authentication are hard-coded
exceptions import exceptions from huaweicloudsdkcdn.v2 import * if __name__ == "__main__": # The AK and SK used for authentication are hard-coded
配置User-Agent黑白名单 通过配置User-Agent黑名单和白名单实现对访客身份的识别和过滤,从而限制访问CDN资源的用户,提升CDN的安全性。 背景信息 如果您需要通过HTTP请求中的User-Agent字段来实现访问控制,您可以配置CDN的UA黑白名单。 User-
exceptions import exceptions from huaweicloudsdkcdn.v2 import * if __name__ == "__main__": # The AK and SK used for authentication are hard-coded
您即将访问非华为云网站,请注意账号财产安全