Protect Your Copyrighted Data
                                       2 Scripts offered by WebSong Designs

 

©Christine Olinger

Sometimes we, as writers, upload free work for promotional or other reasons, and want our readers to have access to the information. Sometimes we don't.

There are some helpful tips and tricks for writers in these instances. While certainly not foolproof, these snippets of code make it very hard for most surfers to steal your data. One code disables right-click on webpages. The other code disables the clip board, which stops visitors to your site from copying and pasting, AND from using the print screen command. Only after the browser they are using has been shut down and restarted will the clipboard be re-enabled, and it will re-activate upon return.

Copy and paste are enabled on this page, so simply highlight the code below and paste it into your HTML before the </body></html> tags:

<script language=JavaScript>
<!--

//No right click script offered by WebSong Designs and Chrissy Olinger
//Visit WebSong for more cool clips at www.websongdesigns.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>

<script type="text/javascript" language="javascript">
<!--

//Clipboard disabler script offered by WebSong Designs and Chrissy Olinger
//Visit WebSong for more cool clips at www.websongdesigns.com

function do_err()
{
return true
}
onerror=do_err;

function no_cp()
{
clipboardData.clearData();setTimeout("no_cp()",100)
}
no_cp();

//-->
</script>

 

©Christine Olinger and WebSong Designs