How to make the content of a confluence page impossible to be copied/pasted, or directly downloaded?

 I want to create a confluence page with text, images and videos, the access to the page will be part of a paid formation, and copyrighted.
The Jira users should not be able to reproduce any of it's content easily.

I am aware of the fact that anything which is displayed can be reproduced, but I want to make the average user unable to do so (disable right-click, ctrl+c, and print should be enough).

I saw that some plugins allow to insert HTML code inside a Confluence page, but I fear that all the page should then be coded in HTML with the limitations that come with it.
The goal would be to simply give access to the page content in a "read only" fashion, without making the maintenance/modification process of the page too complicated for the administrators.

Could the content be displayed via a read only PDF in the page? Would that suffice to prevent easy reproduction? 

Thank you for your help

P.L.

1 answer

1 accepted

2 votes
Accepted answer
Thomas Schlegel Community Champion Sep 01, 2017

Hi Pierre,

you can create a user macro that adds a script to your page. 

Create a macro called "disable right click" like that:

## Macro title: disable-rightclick
##
## @noparams

<script type="text/javascript">
function click (e) {
if (!e)
e = window.event;
if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
if (window.opera)
window.alert("Function is deactivated");
return false;
}
}
if (document.layers)
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = click;
document.oncontextmenu = click;
</script>

 Then add this macro to your page and disable right clicks by this script. 

Thank you Thomas for your answer, I'll give it a try !
I let this topic open for now, in case someone else wants to contribute.

Hello Thomas and thank you for your solution it was exactly what I was looking for.
I just deleted the line "if (window.opera)" so the pop up message works on every browser. (works on Edge, FF and Chrome)
However, the crtl+c and just click and drag an image still represent a really easy way to copy the content of the page.
If you think of anything to help about this it would be amazing.
Can a HTML macro block the use of clipboard?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,134 views 2 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you