Deploy a Cloudflare Worker as an edge proxy in front of an OSS bucket, configure the Worker with OSS endpoint and credentials as environment variables or secrets, and lock down the bucket's referer/hotlink protection so only the Worker's domain can fetch objects—preventing direct public access and leeching.
Deploy a Cloudflare Worker as an edge proxy in front of an OSS bucket, configure the Worker with OSS endpoint and credentials as environment variables or secrets, and lock down the bucket's referer/hotlink protection so only the Worker's domain can fetch objects—preventing direct public access and leeching.
See cloudflare/cloudflare-deploy-worker.
See cloudflare/cloudflare-configure-project.
See oss/oss-configure-security.
Q: How can I securely proxy a private OSS bucket using a Cloudflare Worker? A: You can secure an OSS bucket by deploying a Cloudflare Worker as an edge proxy in front of it and locking down the bucket so only the Worker's domain can fetch objects. Configure the Worker with your OSS endpoint and credentials as environment variables or secrets, then enable referer or hotlink protection to prevent direct public access and leeching.