Skip to content

Next 15#633

Merged
rajat1saxena merged 4 commits intomainfrom
rajat1saxena/issue584
Sep 18, 2025
Merged

Next 15#633
rajat1saxena merged 4 commits intomainfrom
rajat1saxena/issue584

Conversation

@rajat1saxena
Copy link
Copy Markdown
Member

No description provided.

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
courselit-docs Ready Ready Preview Comment Sep 17, 2025 3:14pm

- Add controlsList='nodownload' attribute to all video/audio elements
- Implement onContextMenu prevention to disable right-click context menu
- Add CSS-based protection for user selection and drag prevention
- Apply protections across lesson viewer, community posts, and video components
- Ensure protection works even when JavaScript is disabled (partial)

This prevents users from easily downloading course videos through:
- Browser's built-in video controls download button
- Right-click context menu 'Save video as' option
- Drag and drop video element downloading

Files modified:
- apps/web/components/public/lesson-viewer/index.tsx
- apps/web/components/community/index.tsx
- packages/components-library/src/video-with-preview.tsx
- apps/web/styles/globals.css

Co-authored-by: kaza.vishnu <kaza.vishnu@rakuten.con>
@rajat1saxena rajat1saxena merged commit 952f0f4 into main Sep 18, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants