Stop Right Click Copy On Your Site
Hello WA world.
I've been going through all the goodies I bought and collected years back seeing what still worked and what did not when I came accross a script that still works and you may want to use.
What it does is stop people from being able to right click on your site's pages and copying them. I tested it on one of the pages I've started to make sure it did and didn't do what I wanted.
Works perfictly. It stops right click copying but still allows people to left click on your forward to links.You simply copy it to the body of your page. I put it at the top of the page. It does not show up in the visible published page. Can't tell it's there at all.Unless you right click.
To see it in action go to http://tiredofbosses.siterubix.com/what-is-a-niche and right click on it.
Here is the script
//Simply add the code below to the <BODY> section of your web page:
<script language=JavaScript>
<!--
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
Haven't made a download page yet sorry Highlight above copy and paste Might want to use your note pad to put a copy on so you will have it whenever you need it for later use.
Recent Comments
6
Ok I went and had a look. I don't seem to have any problem with copying the content. Am I misunderstanding something? I'm on a mac
Hmmmm, I did only put it on the niche page to test it before telling about it. not the others. It should have popped up a small box that says function disabled. Just checked again to make sure. And it did. So If you are able to copy then I have missed something. ???? P.S. Just used that page to see if script worked. Anyone else have an idea?
I can see this being handy. But I would be worried about the people that still right click on links to open in a new tab. If they couldn't right click, maybe they wouldn't click at all in fear of being taken off the page.
See more comments
Really good info, might have to try that out soon