Choose which websites can embed a video, turn its downloads off, and share it with links that stop working when you choose. Each one is a separate control, and each has limits: this page says exactly what they stop and what they don't.
List the websites allowed to show a video's player in a frame. Fileboy then sends
Content-Security-Policy: frame-ancestors 'self' https://example.comhttps://example.comhttps://*.example.comhttp://localhost:*<fileboy-player>Every video can be downloaded by anyone who can watch it, unless you turn that off. With downloads off:
"allowDownloads": false<fileboy-player branding>download-url/files/get/ORIGINAL_ID/videos/ID/audio.m4a/videos/ID/video.mp4/videos/ID/mp4/HEIGHT.mp4downloads_disabledsignDownloadUrldownloadThe animated preview (
/videos/ID/preview.mp4.gifLike a file's expiring links: a link that stops working at a time you choose, from a minute to 365 days away, that you can turn off before then, and that counts how often it was opened. A video link is a watch page,
https://fileboy.io/video/link/TOKEN/embedfb_link=…Make them on the video's Share & embed tab, or from your server:
// on your server, with the private key
await fileboy.updateVideo(videoId, {
allowDownloads: false, // no download button; the original and audio need your key
embedDomains: ["https://example.com", "https://*.example.com"], // [] any site, null the app's
})
await fileboy.setEmbedDomains(["https://example.com"]) // the app's default
// a download for one of your own users, while downloads are off
const url = fileboy.signDownloadUrl(fileboy.buildVideoAudioUrl(videoId), { expiresIn: 600 })
const link = await fileboy.createVideoLink(videoId, { expiresIn: 7 * 24 * 3600, note: "for Sam" })
// link.url: https://fileboy.io/video/link/..., link.embedUrl for an iframe
await fileboy.revokeVideoLink(videoId, link.id) // stops at once, even mid-video# on your server, with the private key
fileboy.update_video(video_id, allow_downloads: false,
embed_domains: ["https://example.com", "https://*.example.com"])
fileboy.update_embed_domains(["https://example.com"]) # the app's default
url = fileboy.sign_download_url("https://api.fileboy.io/videos/#{video_id}/audio.m4a", expires_in: 600)
link = fileboy.create_video_link(video_id, expires_in: 7 * 24 * 3600, note: "for Sam")
link.url # => "https://fileboy.io/video/link/..."
fileboy.revoke_video_link(video_id, link.id)# on your server, with the private key
client.update_video(video_id, allow_downloads=False,
embed_domains=["https://example.com", "https://*.example.com"])
client.set_embed_domains(["https://example.com"]) # the app's default
url = client.sign_download_url(f"https://api.fileboy.io/videos/{video_id}/audio.m4a", expires_in=600)
link = client.create_video_link(video_id, expires_in=7 * 24 * 3600, note="for Sam")
link.url # "https://fileboy.io/video/link/..."
client.revoke_video_link(video_id, link.id)// on your server, with the private key
$fileboy->updateVideo($videoId, [
'allowDownloads' => false,
'embedDomains' => ['https://example.com', 'https://*.example.com'],
]);
$fileboy->setEmbedDomains(['https://example.com']); // the app's default
$url = $fileboy->signDownloadUrl("https://api.fileboy.io/videos/$videoId/audio.m4a", 600);
$link = $fileboy->createVideoLink($videoId, expiresIn: 7 * 24 * 3600, note: 'for Sam');
$link->url; // https://fileboy.io/video/link/...
$fileboy->revokeVideoLink($videoId, $link->id);curl -X PATCH https://api.fileboy.io/videos/$VIDEO_ID \
-H "Authorization: token YOUR_SIGNED_TOKEN" \
-H "Content-Type: application/json" \
-d '{"allowDownloads": false, "embedDomains": ["https://example.com"]}'
curl -X POST https://api.fileboy.io/videos/$VIDEO_ID/links \
-H "Authorization: token YOUR_SIGNED_TOKEN" \
-H "Content-Type: application/json" \
-d '{"expiresIn": 604800, "note": "for Sam"}'In your own page, open a link with
GET /video-links/TOKENvideoIdquery<fileboy-player video-id="…" signed-query="fb_link=…">link_expiredlink_revoked