Disable Copying on a website

前端 未结 8 1160
礼貌的吻别
礼貌的吻别 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:16

    If you have your texts in particular divs, you could put a transparent div on top of those divs. Secondly, you could make all your protected text dynamic, and inject it into the divs from javascript where is would exist in a coded form -- that would defeat a 'view-source'.

提交回复
热议问题