Protect your Content!

by
Zypodulous
The following is a little script I came by, that will prevent someone from using their Mouse to Highlight the Content on your Site, for the sake of Copying it onto their clipboard for pasting somewhere else.
It works with the latest version of IE, Firefox, and Netscape.
Basically, they can't pick and chose what parts of your Website, they want to copy... without your permission!
WARNING: Just typing that script into the edit box when creating this page, and presing the "Preview" button, prevented me from making further changes to this page because it disabled the use of my Mouse. I had to redo the page from scratch and put the code into the "Verbatim" tag to render it non-functional. This code can really mess with you, use at your own risk!
One last Note, people can still copy your Content if they use the "edit" button at the top of their browser and click on the "Select All" option, inwhich case they are forced to highlight everything, and not just the specific content they want...
This script only disables the ability to use the Mouse to highlight specific content.
Place it at the bottom of your Sidebar to make it work on your PBWiki (both free and premium). For individual pages only, place this at the very bottom of the page. This is a Javascript, so realize that people who are smart enough could still look at the source or turn off Javascript.
<script>
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
Comments (1)
vietmusic said
at 3:48 am on May 12, 2006
See bottom of page for comments on the article
You don't have permission to comment on this page.