Skip to content

Online education

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

ChallengeWhat it looks like
Paid content leaksCourse links get shared, or bulk-scraped by download tools and resold
Previews and conversionEach course needs a cover and a preview clip of a few dozen seconds, and editing them by hand is costly
Slide leaksScreenshots of lecture notes get posted on other platforms, and the source is hard to trace
Homework submissionsUploads pile up before the deadline, and a repeat submission can overwrite homework already handed in
Class-time peaksTraffic surges when a course starts or a live-stream replay is published
Multiple campuses and institutionsData for different schools and institutions must be managed separately

Industry examples

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

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 that expire in 1–2 hours, so forwarded links stop working quickly;
  • Edge rules 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 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 limited by time and use count, with If-None-Match: * so a repeat submission can't overwrite homework already handed in;
  • CoreIX auto-orients images based on Exif, and HEIC displays correctly on web pages too. enhance auto enhance makes dark photos of work easy to see, and trim trims away 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

CapabilityWhat it does here
S4 object storageStores course videos, slides, and homework. Past courses are stored without tiers and can be relisted anytime
Sub-user permissionsGrants access by school, institution, or course directory, so each can manage only its own content
CDN advanced authenticationCourse videos play only through links with a signature and an expiry, so forwarded links stop working quickly
Edge rulesBlock the User-Agents of common download tools, limit per-connection speed, restrict access by region, and let free directories skip signatures
Extract frames from videoframe=auto generates a cover for each lesson automatically
Clip videoframe=start:end cuts preview clips on the fly, with no separate editing or storage
Text watermarks / SVG template watermarksOverlay 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 formatsRenders PDF slides directly as images for slide previews
Original file protectionOriginal slide images can't be accessed anonymously; visitors see only the watermarked style output
Presigned URLsStudents upload homework directly from the browser or app, with links limited by time and use count
Conditional requestsIf-None-Match: * ensures each assignment can be submitted only once and isn't overwritten by mistake
PrefetchPushes new courses to CDN nodes before class starts, so even the first student doesn't wait for an origin fetch
Usage / Top contentMonitor class-time peaks by the minute, and spot heavily downloaded courses and unusual IPs
Static websitesHost course introduction pages and enrollment campaign pages

Organize directories

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 for courses and turn on advanced authentication. 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 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

PurposeExample link
Course covercourses/c101/videos/01.mp4?frame=auto&w=960&fmt=auto
First 60 seconds as a previewcourses/c101/videos/01.mp4?frame=0:60000
Hover preview in listscourses/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 that writes student info with an SVG template watermark, and make the watermark text a variable parameter (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 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 on the Cache purge page so CDN nodes cache the videos in advance. During class, monitor bandwidth at 1-minute granularity in Usage.

Key practices

Three lines of defense against piracy

Line of defenseHowWhat it stops
Time-limited linksAdvanced authentication signatures that expire in 1–2 hoursForwarded links and long-term sharing
Tool detectionBlock the User-Agents of download tools and crawlersSimple bulk downloads
Speed controlPer-connection speed limit close to the playback bitrateFast downloads of entire courses

Also check the Visitor IP ranking in Top content 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.

Traceable slides

Use SVG template watermarks 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 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