Skip to content

Add anti-cheating restrictions (video + quiz protection)#896

Open
ADITYA-1173 wants to merge 3 commits into
vicharanashala:mainfrom
ADITYA-1173:combined-updates
Open

Add anti-cheating restrictions (video + quiz protection)#896
ADITYA-1173 wants to merge 3 commits into
vicharanashala:mainfrom
ADITYA-1173:combined-updates

Conversation

@ADITYA-1173
Copy link
Copy Markdown

This PR introduces anti-cheating mechanisms for both video playback and quiz pages.

🔒 Features Added:

  1. Video Speed Restriction
  • Forces playback speed to 1x
  • Prevents users from changing speed
  1. Disable Right Click
  • Disabled on video player
  • Disabled on quiz page
  1. Disable Text Selection (Quiz Page)
  • Prevents copying questions
  1. Disable Copy/Paste (Quiz Page)
  • Blocks clipboard actions

📂 Files Modified:

  • frontend/src/components/video.tsx
  • frontend/src/pages/quiz.tsx

🎯 Purpose:

To improve content security and prevent unfair practices during learning and assessments.


Let me know if any adjustments or scoped restrictions are preferred.

Added Restricted video playback speed feature:
When user use extensions like video speed controller to increase the video lecture speed over 2x , then he/she will be restricted to do that. This will ensure optimal learning, comprehension & effective knowledge transfer.
Added event listeners to disable right-click, text selection, and copy/paste actions.
@github-actions github-actions Bot added the frontend Changes to the frontend of the project label Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes to the frontend of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants