• Resolved Cron

    (@cronuca)


    Ability to protect content from being copied, selected or printed similar to what most news site’s use, and/or add custom text notification while trying to copy content.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Bowo

    (@qriouslad)

    Thanks for the suggestion. How have you been achieving this so far? A plugin? A code snippet?

    Thread Starter Cron

    (@cronuca)

    I use custom code for this presently.

    Plugin Author Bowo

    (@qriouslad)

    Do you mind sharing the code snippet?

    What exactly does it do?

    Thread Starter Cron

    (@cronuca)

    <script type=”text/javascript”>
    document.oncontextmenu=document.onkeydown=e=>{if(“contextmenu”==e.type||e.ctrlKey&&[67,86,85,117].includes(e.keyCode))return alert(“Sorry, this functionality has been disabled!”),!1};
    </script>

    Above code blocks copying and right click and displays notification. Although these can be separated too.

    Plugin Author Bowo

    (@qriouslad)

    Noted. Thanks for sharing that. Are you satisfied with what that code snippet does? i.e. does it provide enough copy protection for you?

    Thread Starter Cron

    (@cronuca)

    This is more of an easy way, what i was looking for is slightly different where you can copy things but the copied content is custom instead of what is selected and copied.

    Plugin Author Bowo

    (@qriouslad)

    How is the copied content custom(ized)?

    Thread Starter Cron

    (@cronuca)

    Plugin Author Bowo

    (@qriouslad)

    Noted. I guess is what you’re trying to achieve:

    “This allows you to append/prepend content to the selection, such as copyright information or other content.”

    Thread Starter Cron

    (@cronuca)

    Append/Prepend or define custom content replacing the original. I am not sure if it can protect images too.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Feature request: Copy protect’ is closed to new replies.