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:
51 sites
148 downloads
6 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

Screenshots

Screenshot #0

Contributors

Vinit Prajapati (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments

Show comments
  • Plugins bot
    Sat, 29 Mar 2025, 11:50 PM
    Approval issue created: CONTRIB-9862
  • Laurie Huber
    Thu, 25 Sept 2025, 4:52 AM
    Hello Vinit. Great to see that this type of tool is once again availablesmile A quick question about setup. Can we choose the general type of module, for example Quiz and it will stop students from copying and pasting in all quizzes on our site? Or, do we have to list each specific Quiz or assignment? Let me know. Much Thanks - Laurie
  • Vinit Prajapati
    Thu, 25 Sept 2025, 2:30 PM
    Hi Laurie - Thanks for message.
    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.
  • Laurie Huber
    Thu, 23 Oct 2025, 4:48 AM
    Hi Vinit. Thanks for the information. Further to this, I am able to stop students from copying information from my site, however, I am not able to stop them from pasting answers from other sites such as AI into our response boxes and assignments. Is there a way to stop students from copying text into our quizzes and assignments? Thanks. Laurie
Please login to post comments