Preventing Copy-Paste During Exams


To address potential cheating during exams, a solution is provided that involves installing a browser extension called Tampermonkey on each computer station. Once Tampermonkey is installed, a custom Tampermonkey script will be provided that disables students' ability to copy and paste content from the pre-encounter session.


What the Script Does:

  • Disables Right-Click: Prevents students from accessing the context menu.

  • Prevents Text Selection: Stops users from selecting text to copy.

  • Blocks Copy-Paste Shortcuts: Disables keyboard shortcuts like Ctrl+C, Ctrl+X, and Ctrl+V.

See a step-by-step guide for installing Tampermonkey here.

Steps to Prevent Copy-Paste

1️⃣ Install Tampermonkey Extension

Tampermonkey is a browser extension that will run a custom script to prevent copy-pasting on the system. Please follow these steps to install it on each computer station’s browser:

2️⃣ Add the Script to Tampermonkey

Once Tampermonkey is installed, follow these steps to add the custom script:

  • Click on the Tampermonkey icon in your browser’s extension bar.

  • Click on Create a New Script.

    Delete any default code in the editor and paste the script provided in the attachment.

    copy-paste-disable.js


  • Click File > Save to save the script.

3️⃣ Restart the Browser

After adding the script, please restart the browser to ensure the script is properly activated.

4️⃣ Testing the Script

After the installation is complete, you can test the system by attempting to copy-paste any text from LearningSpace. If the script is working properly, users should no longer be able to copy, cut, or paste any content from the page on the given station.