Moodle Plugins directory: Prevent Copy | Moodle.org
Prevent Copy
Local plugins ::: local_preventcopy
Maintained by
Vinit Prajapati
The Prevent Copy plugin is a local Moodle plugin designed to restrict users from performing actions like right-clicking, copying, and pasting on specific pages. It allows administrators to configure the behavior for different roles (e.g., students, teachers) and specific pages.
Latest release:
172 sites
254 downloads
10 fans
Current versions available: 1
The **Prevent Copy** plugin is a local Moodle plugin designed to restrict users from performing actions like right-clicking, copying, and pasting on specific pages. It allows administrators to configure the behavior for different roles (e.g., students, teachers) and specific pages.
Configuration
- Provide option to add our own JS fragement to disbale rightclick/copy/paste/developer tools
- Add List of page to apply this, i.e. /mod/page or /mod/lesosn
- Apply to Student Role (Mainly applicable in Course)
- Apply to Non Student Role i.e. teacher/manager
Useful links
Contributors
Vinit Prajapati (Lead maintainer)
Please login to view contributors details and/or to contact them
Plugin matches page URL, i.e. if we have configured with /mod/quiz - it means, this will stop copy/paste/rightclick on all quiz pages
For this ref -
It will prevent all Moodle resource pages, Modules quiz and lesson. I hope this is helpful. Kindly message if any more details are required.
Unfortunately, this is causing problems for some instructors because their tests are structured in a way that requires the copy/paste function. (e.g., they need to copy the data provided in the test questions into Excel)
The solution would be to be able to disable the protection for specific courses. Is there a solution for this?
I know that when enabling protection, you can specify a course, but out of nearly 20,000 courses, we would like to suspend protection in only a few dozen cases.
Currently, it is based on URL. I have already planned this in next release. Give me 1-2 weeks. I will release new code.
Implementation will be based on
Course Id
Module specific
Quiz: Course Module Id
Assignment: Course Module Id
Forum: Course Module id.
Will release new code shortly.
Thank you.
Thank you for this very useful plugin!
I have a question regarding the original issue. Can I create exceptions? For example: I want to protect all courses on the portal (~20,000 courses), except for 10 specific courses. (Of course, I don’t want to list 19,990 course IDs.)
TIA
The settings menu is very different.
Luca B.
The settings interface has indeed changed, but the plugin is working fine. For example: If you previously had /mod/quiz listed among your conditions, now just put an asterisk in the Quiz field.
i try it and it is not working on Tiny MCE editor. Can you help me to work it?
https://github.com/vinit-prajapati/moodle_local_preventcopy/blob/main/readme.md
Please refer example - 5 (Copy only this block)