# Cloudflare R2 & Terms of Service

URL: https://skali.dppst.com/docs/cloudflare-terms/

> What Cloudflare's terms actually say about serving video from R2 and Workers, with direct links to the official texts and what to know about automated abuse detection.

Serving video hosted in Cloudflare R2 through a Worker and Cloudflare's CDN is allowed under Cloudflare's terms of service.

Confusion around this usually comes from the old Section 2.8 rule, which Cloudflare replaced in May 2023, or from mixing up two different setups: proxying video from an external server (still restricted on self-serve CDN plans) versus serving video hosted inside Cloudflare's own storage services (allowed).

You do not have to take our word for it. Every primary source is linked below so you can check the wording directly.

## What Cloudflare's terms actually say

### 1. Service-Specific Terms (CDN section)

In Cloudflare's [Service-Specific Terms](https://www.cloudflare.com/service-specific-terms-application-services/) (under *Content Delivery Network (Free, Pro, or Business)*, checked December 2026):

> "Unless you are an Enterprise customer, Cloudflare offers specific Paid Services (e.g., the Developer Platform, Images, and Stream) that you must use in order to serve video and other large files via the CDN."

The clause explicitly includes **the Developer Platform**, not just Stream. Workers, D1, and R2 are Cloudflare's Developer Platform services.

### 2. The May 2023 terms update ("Goodbye, section 2.8")

When Cloudflare replaced Section 2.8 in May 2023, their official announcement ([Goodbye, section 2.8](https://blog.cloudflare.com/updated-tos/)) stated directly:

> "customers can serve video and other large files using the CDN so long as that content is hosted by a Cloudflare service like Stream, Images, or R2"

The same post draws the exact boundary:

> "Video and large files hosted outside of Cloudflare will still be restricted on our CDN"

Skali stores all video segments and thumbnails in your own R2 bucket and serves them through your Worker. Nothing is proxied from an external origin.

### 3. Caching R2 on Cloudflare's CDN is documented

Caching public R2 media at the edge is not a workaround. Cloudflare's [R2 Public Buckets documentation](https://developers.cloudflare.com/r2/buckets/public-buckets/) states:

> "Domain access through a custom domain allows you to use Cloudflare Cache to accelerate access to your R2 bucket"

The same page recommends enabling Smart Tiered Cache to keep a cache tier close to the bucket. On Hacker News in February 2023, Workers principal engineer Kenton Varda also [confirmed](https://news.ycombinator.com/item?id=34642730) that serving non-HTML content from a Worker is covered by the Developer Platform supplemental terms.

## What to know about automated abuse detection

Being compliant with the written terms does not guarantee that an automated filter will never flag your domain.

Cloudflare runs automated traffic heuristics on proxied domains to catch external video proxying and high-volume abuse. Because those checks look at traffic shape (such as sustained HLS segment traffic) rather than only the storage backend, compliant R2 setups have occasionally triggered a `"This video has been restricted"` page, typically at high volume.

Two public threads on the Cloudflare Community forum document this exact case, and both were resolved after staff review:

- **March 2023**: a custom-domain R2 bucket serving `.ts` segments was restricted and restored after Cloudflare staff (`ncormier`) opened an internal ticket ([community thread](https://community.cloudflare.com/t/i-use-cloudflare-r2-to-host-video-files-which-does-not-violate-the-tos-but-i-am-still-restricted/488131)).
- **December 2024**: a Worker serving R2 media behind a proxied domain (the same pattern Skali uses) was restricted and lifted after internal escalation ([community thread](https://community.cloudflare.com/t/tos-on-content-delivery-from-r2/752469)).

### If your domain is ever flagged by mistake

Cloudflare's [Delivering Videos with Cloudflare](https://developers.cloudflare.com/fundamentals/reference/policies-compliances/delivering-videos-with-cloudflare/) page describes the appeal process: open a Cloudflare support ticket with your domain name, a short description of the restriction, and a clear note that the media is stored in Cloudflare R2 and served from your Worker (not proxied from an external server).

As with any self-hosted software, your Skali instance runs on your own Cloudflare account and remains subject to Cloudflare's general Acceptable Use Policy and abuse limits.
