Is there a way to disable right click or even copy-past on your Blogger blog or
website?
I know you hate stealing, hate people copy your articles and download your
pictures/photos. Technically it's very hard to prevent others from copying the
articles. As long as your content is displaying in front of someone, he will
always have a way to copy. But what we can do, is to make it hard enough for
him to do. Disable Right Click is one way to make stealing harder.
Scripts to disable right click
<script
language=javascript>
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>
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>
I'm not using them on my site at this moment, because I provide some codes
on this site for people to customize their Blogger, I don't want to give them
hard time to copy and past.
How to embed the codes in Blogger (Blogspot)
- Select add Gadget option
- Select “HTML/JavaScript” Gadget and past below given Java Script in HTML/JavaScript content box.(See below demo image).
- Save arrangement'.
Done ! Right click disabled on your Blogger site.
No comments:
Post a Comment