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
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

372 views 20 10
Join discussion

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