Disable Copying on a website

前端 未结 8 1173
礼貌的吻别
礼貌的吻别 2021-02-10 06:38

I know that it\'s impossible to thwart the world\'s most advanced minds, but I\'d like to put the slightest of barriers on my website to keep my students from copying text from

8条回答
  •  自闭症患者
    2021-02-10 07:18

    I would suggest you to use:

    Here you have protected text

    Support for this method could be found here: http://help.dottoro.com/ljwexqxl.php

    It is simple and in my opinion sufficient against regular users. To be honest there is no option to fully prevent copying text. One can always use for example Chrome Developer Tools and copy even dynamically loaded text from there.

    For more effective protection you should place oncopy in tag because otherwise it is possible to copy text by starting selection from outer

    .

提交回复
热议问题