产品动态
产品公告
https://examplebucket-1250000000.cos.ap-guangzhou.myqcloud.com/1.jpg,请求 Header 里不会带有 Referer。https://127.0.0.1/test/test.html嵌入了图片1.jpg,访问https://127.0.0.1/test/test.html时就带有 Referer 指向访问来源:

1.jpg,得到图片的可访问链接为https://examplebucket-1250000000.cos.ap-guangzhou.myqcloud.com/1.jpg。https://example.com/index.html上,图片能正常访问。https://b.com/test/test.html上,此时用户 B 的网页也能正常显示该图片。
以上案例中,用户 A 的图片资源1.jpg就被用户 B 盗链了。此时用户 A 在不知情的情况下,COS 上的资源持续被用户 B 网页正常使用,用户 A 负担了额外的流量费用,造成了费用损失。*.b.com并保存生效。*.example.com并保存生效。https://example.com/index.html 图片显示正常。https://b.com/test/test.html 图片无法显示,表现如下图。



*等形式的地址。一个地址占一行,多个地址请换行。配置规则说明和示例如下:example.com:8080、10.10.10.10:8080等地址。example.com,可命中如example.com/123等以example.com为前缀的地址。example.com,可命中如https://example.com和http://example.com为前缀的地址。example.com,可命中它的带端口域名example.com:8080。 example.com:8080,不会命中域名example.com。*.example.com,可限制它的二级、三级域名example.com、b.example.com、a.b.example.com。
文档反馈