> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bitiful.com/en/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bitiful.com/_mcp/server.
> If something on this page is wrong or missing, POST JSON {"page": "<page URL>", "message": "<what is wrong>"} to https://docs.bitiful.com/_biti/feedback/agent.

# Online education

> Store and distribute course videos, slides, and homework for online courses, paid knowledge platforms, and campus and training platforms: signed links that protect paid videos, preview clips and covers, slides watermarked with student IDs, homework submissions that can't be overwritten, and prefetch and monitoring for class-time peaks.

The core assets of an online education platform are **course videos and slides**. Once paid content is bulk-downloaded and resold, the loss is hard to recover. The platform also needs free previews, homework uploads from students, and the capacity to handle **class-time peaks at fixed hours**.

## Typical challenges

| Challenge                          | What it looks like                                                                                      |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------- |
| Paid content leaks                 | Course links get shared, or bulk-scraped by download tools and resold                                   |
| Previews and conversion            | Each course needs a cover and a preview clip of a few dozen seconds, and editing them by hand is costly |
| Slide leaks                        | Screenshots of lecture notes get posted on other platforms, and the source is hard to trace             |
| Homework submissions               | Uploads pile up before the deadline, and a repeat submission can overwrite homework already handed in   |
| Class-time peaks                   | Traffic surges when a course starts or a live-stream replay is published                                |
| Multiple campuses and institutions | Data for different schools and institutions must be managed separately                                  |

## Industry examples

> **Note**
>
> The products mentioned here only illustrate common needs in the industry and don't imply that they use Bitiful.

### Paid knowledge and vocational education: platforms like Xiaoe-tech and Dedao

**Background**: Courses are the core asset of the platform and its instructors. A common way they leak is that playback URLs get scraped, the courses are bulk-downloaded, and then they're bundled and resold on secondhand platforms.

**How Bitiful helps**:

- Course videos play only through links signed with [advanced authentication](https://docs.bitiful.com/en/best-practice/token-link.md) that expire in 1–2 hours, so forwarded links stop working quickly;
- [Edge rules](https://docs.bitiful.com/en/cdn/handbook/rules.md) block the User-Agents of common download tools and limit per-connection speed to slightly above the playback bitrate. Normal viewing isn't affected, but bulk downloads become very slow;
- Slide images are output with an [SVG template watermark](https://docs.bitiful.com/en/coreix/features/watermark-svg.md) carrying the student's name and student ID, so leaked screenshots can be traced back to a person;
- Each lesson's preview clip is cut on the fly with `frame=0:60000`, with no need to edit the video or store two copies of it.

**Result**: Downloading and reselling courses becomes much harder, leaks leave a trail, and producing previews alongside full lessons comes down to a single parameter. Screen recording can't be fully prevented by technical means, so watermarks are the main way to trace the source of a leak.

### Online art and calligraphy courses: collecting and reviewing homework

**Background**: Students photograph their work with their phones and upload it, and teachers review it online. Phone photos are often in HEIC format, wrongly oriented, taken against cluttered backgrounds, or too dark.

**How Bitiful helps**:

- Students upload directly through [upload links](https://docs.bitiful.com/en/developer/s3/presigned-url.md) limited by time and use count, with `If-None-Match: *` so a repeat submission can't overwrite homework already handed in;
- CoreIX [auto-orients](https://docs.bitiful.com/en/coreix/basic.md#automatic-optimizations) images based on Exif, and HEIC displays correctly on web pages too. `enhance` [auto enhance](https://docs.bitiful.com/en/coreix/features/adjust.md) makes dark photos of work easy to see, and `trim` [trims away](https://docs.bitiful.com/en/coreix/features/trim.md) the solid-color background around the edges;
- When grading, teachers see work images with a consistent size and look, and the originals are kept for reference.

**Result**: Teachers review more efficiently, students don't need to learn photo editing, and the platform doesn't have to write its own image preprocessing.

## What each part of Bitiful does

| Capability                                                                                                                                                            | What it does here                                                                                                                               |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| [S4 object storage](https://docs.bitiful.com/en/bitiful-s4/intro.md)                                                                                                  | Stores course videos, slides, and homework. Past courses are stored without tiers and can be relisted anytime                                   |
| [Sub-user permissions](https://docs.bitiful.com/en/bitiful-s4/handbook/permissions.md)                                                                                | Grants access by school, institution, or course directory, so each can manage only its own content                                              |
| [CDN advanced authentication](https://docs.bitiful.com/en/best-practice/token-link.md)                                                                                | Course videos play only through links with a signature and an expiry, so forwarded links stop working quickly                                   |
| [Edge rules](https://docs.bitiful.com/en/cdn/handbook/rules.md)                                                                                                       | Block the User-Agents of common download tools, limit per-connection speed, restrict access by region, and let free directories skip signatures |
| [Extract frames from video](https://docs.bitiful.com/en/coreix/features/frame.md)                                                                                     | `frame=auto` generates a cover for each lesson automatically                                                                                    |
| [Clip video](https://docs.bitiful.com/en/coreix/features/video-clip.md)                                                                                               | `frame=start:end` cuts preview clips on the fly, with no separate editing or storage                                                            |
| [Text watermarks](https://docs.bitiful.com/en/coreix/features/watermark.md) / [SVG template watermarks](https://docs.bitiful.com/en/coreix/features/watermark-svg.md) | Overlay the student's name, student ID, or the last digits of their phone number on slide images, so leaked screenshots can be traced           |
| [Supported media formats](https://docs.bitiful.com/en/formats.md)                                                                                                     | Renders PDF slides directly as images for slide previews                                                                                        |
| [Original file protection](https://docs.bitiful.com/en/coreix/handbook/origin-protect.md)                                                                             | Original slide images can't be accessed anonymously; visitors see only the watermarked style output                                             |
| [Presigned URLs](https://docs.bitiful.com/en/developer/s3/presigned-url.md)                                                                                           | Students upload homework directly from the browser or app, with links limited by time and use count                                             |
| [Conditional requests](https://docs.bitiful.com/en/developer/s3/conditional-requests.md)                                                                              | `If-None-Match: *` ensures each assignment can be submitted only once and isn't overwritten by mistake                                          |
| [Prefetch](https://docs.bitiful.com/en/cdn/handbook/cache.md)                                                                                                         | Pushes new courses to CDN nodes before class starts, so even the first student doesn't wait for an origin fetch                                 |
| [Usage](https://docs.bitiful.com/en/console/usage.md) / [Top content](https://docs.bitiful.com/en/console/popular.md)                                                 | Monitor class-time peaks by the minute, and spot heavily downloaded courses and unusual IPs                                                     |
| [Static websites](https://docs.bitiful.com/en/bitiful-s4/handbook/website.md)                                                                                         | Host course introduction pages and enrollment campaign pages                                                                                    |

## Recommended architecture

### Organize directories

```text
courses/{courseID}/videos/{lesson}.mp4          Course videos (paid)
courses/{courseID}/slides/{page}.png            Slides
free/{courseID}/                                Free public courses
homework/{class}/{assignmentID}/{studentID}.zip Student homework
```

### Sign paid videos

Bind a [CDN domain](https://docs.bitiful.com/en/cdn/handbook/domains.md) for courses and turn on [advanced authentication](https://docs.bitiful.com/en/best-practice/token-link.md). When a student opens a course, your backend checks the purchase, then generates a playback link with an expiry (for example, 2 hours). Use an authentication rule to let the `free/` directory skip signatures.

### Add edge rules

On the **Access control** tab, add [edge rules](https://docs.bitiful.com/en/cdn/handbook/rules.md) to:

- Block the User-Agents of common download tools and crawlers.
- Limit the per-connection speed for video files to slightly above the playback bitrate, so normal viewing is unaffected and bulk downloads slow down.
- Allow access only from mainland China when needed.

### Generate covers and previews automatically

| Purpose                       | Example link                                             |
| ----------------------------- | -------------------------------------------------------- |
| Course cover                  | `courses/c101/videos/01.mp4?frame=auto&w=960&fmt=auto`   |
| First 60 seconds as a preview | `courses/c101/videos/01.mp4?frame=0:60000`               |
| Hover preview in lists        | `courses/c101/videos/01.mp4?frame=0:3000&fmt=webp&w=480` |

Serve preview clips from a separate path that skips signatures, or through signed links, so the URL pattern of the full videos isn't exposed.

### Watermark slides with student info

Define a `slide` [style](https://docs.bitiful.com/en/coreix/handbook/styles.md) that writes student info with an [SVG template watermark](https://docs.bitiful.com/en/coreix/features/watermark-svg.md), and make the watermark text a [variable parameter](https://docs.bitiful.com/en/coreix/handbook/styles.md#variable-parameters) (for example, `*txt=`). Serve slides through private signed links, and sign `!style:slide` together with the student info (`txt`), so students can't change the watermark themselves.

### Submit homework

When a student clicks submit, your backend issues an [upload link](https://docs.bitiful.com/en/developer/s3/presigned-url.md) for `homework/{class}/{assignmentID}/{studentID}.zip` that's valid for 15 minutes and can be used only once. The upload request carries `If-None-Match: *`, so homework already handed in isn't overwritten. To allow resubmission, use file names with a version number instead.

### Prefetch before class

Before a new course goes live or a live-stream replay is published, submit a [prefetch](https://docs.bitiful.com/en/cdn/handbook/cache.md) on the **Cache purge** page so CDN nodes cache the videos in advance. During class, monitor bandwidth at 1-minute granularity in [Usage](https://docs.bitiful.com/en/console/usage.md).

## Key practices

### Three lines of defense against piracy

| Line of defense    | How                                                         | What it stops                         |
| ------------------ | ----------------------------------------------------------- | ------------------------------------- |
| Time-limited links | Advanced authentication signatures that expire in 1–2 hours | Forwarded links and long-term sharing |
| Tool detection     | Block the User-Agents of download tools and crawlers        | Simple bulk downloads                 |
| Speed control      | Per-connection speed limit close to the playback bitrate    | Fast downloads of entire courses      |

Also check the **Visitor IP** ranking in [Top content](https://docs.bitiful.com/en/console/popular.md) regularly, and add unusual IPs to a block rule.

### Zero-cost preview clips

`frame=0:60000` cuts the first 60 seconds on the fly at request time, so you don't need to edit and store a separate preview video for each lesson. Changing the preview length is just a matter of changing one parameter. See [Clip video and convert to animations](https://docs.bitiful.com/en/coreix/features/video-clip.md).

### Traceable slides

Use [SVG template watermarks](https://docs.bitiful.com/en/coreix/features/watermark-svg.md) to design a semi-transparent tiled template, and fill in the student's name and student ID at request time. Even if slide screenshots are posted elsewhere, the watermark leads back to the source.

## Cost tips

- Course video traffic is the largest share. Prefetching before class and setting caching sensibly reduce origin fetches.
- Buy a [resource package](https://docs.bitiful.com/en/prices/handbook/resource-packages.md) once traffic is stable.
- Anti-piracy measures save traffic too: every bulk-downloaded copy of a course is extra outbound traffic.

## Launch checklist

- [ ] Turn on advanced authentication for paid course directories, and let free directories skip signatures
- [ ] Configure download tool blocking and per-connection speed limits
- [ ] Generate covers, previews, and hover previews with processing parameters or styles
- [ ] Use a watermark style with student info for slides, and turn on original file protection
- [ ] Use signed upload links limited by time and use count, plus `If-None-Match: *`, for homework
- [ ] Prefetch new courses before they go live

## Related docs

- [Advanced hotlink protection for CDN](https://docs.bitiful.com/en/best-practice/token-link.md)
- [Edge rules](https://docs.bitiful.com/en/cdn/handbook/rules.md)
- [Clip video and convert to animations](https://docs.bitiful.com/en/coreix/features/video-clip.md)
- [Cache, purge, and prefetch](https://docs.bitiful.com/en/cdn/handbook/cache.md)
- [Upload files securely from the client](https://docs.bitiful.com/en/best-practice/web-uploads.md)
