Skip to main content
All CollectionsContestPad Knowledgebase
Protecting images in my photo contests
Protecting images in my photo contests
Andrew Busuttil avatar
Written by Andrew Busuttil
Updated over a year ago

Some competitions, particularly photo competitions, require the ability to restrict the people from copying or downloading photos from the competition website.

There are a few options available to protect the copyright integrity of the competition.

ContestPad provides the following options:

  • Only display a smaller rendered version of the original image

  • Remove the ability to right mouse click and download the image

  • Watermark the rendered version of the image

ContestPad also restricts the ability access entry photographs outside of the contestPad site. So even if the photo URL is accessed if the user is not logged in they will be restricted from accessing the photo directly.

Do not serve up original photo

To display a smaller rendered version that the original high-resolution photo, go to the settings area of the competition.

Then scroll down until you get to two settings:

  • Show original image in contest detail views

  • Show original image in contest judging detail view

If either of these options are enabled then when a image is selected from either the public gallery or the judging gallery then a 1920px rendered version of the original image will be displayed.

Remove the ability to right mouse click and download the image

To remove the ability for the context menu to display on the browser you can add some simple javascript to your web template.

How to add this will depend on which template you are using.

Classic Template Editor

For the Classic Template editor go to the code area (</> ) of the template editor.

Navigate to the index.view.html file and in the <head> </head> section include the following script:

<script>

function mischandler(){

return false; /*change to false for go-live*/

}

function mousehandler(e){

var myevent = (isNS) ? e : event;

var eventbutton = (isNS) ? myevent.which : myevent.button;

if((eventbutton==2)||(eventbutton==3)) return false;

}

document.oncontextmenu = mischandler;

document.onmousedown = mousehandler;

document.onmouseup = mousehandler;

</script>

Once pasted save the template.

Website Builder

To limit the right mouse click on the new Website builder, go to the Global Style Tab and select the General tab.

On the right you will then see the script input area.

Copy and paste the following script into this area and then publish your page.

<script>

function mischandler(){

return false; /*change to false for go-live*/

}

function mousehandler(e){

var myevent = (isNS) ? e : event;

var eventbutton = (isNS) ? myevent.which : myevent.button;

if((eventbutton==2)||(eventbutton==3)) return false;

}

document.oncontextmenu = mischandler;

document.onmousedown = mousehandler;

document.onmouseup = mousehandler;

</script>

Watermark images

The last option is that ContestPad has the ability to watermark images. Note this will only work when the original images are not displayed on the public website as described in the first section.

To find out more how to watermark images go to the Customisation section of this guide for full instructions here.

Did this answer your question?