How to disable Right Click Copy & Paste on a Blog

Have you ever worked really hard on graphics for your site only to find later that someone has stolen them as their own. You can help encrypt and protect your site with the following HTML codes. No right click block is 100% effective, but they will help against novices.

Use the script below so when someone right clicks to save an image off your page, a message will come up letting people know that your information is copyrighted.

This script may not work in all browsers, and is not foolproof. If someone really wants something from your page they can find ways around it, but at least it's a warning to people who want to take your graphics. But it certainly is a great start.

Copy and paste the following code, and make sure it comes right after your <HEAD> tag: Or as a JavaScript.

In Blogger.com, Go to Layout - Add a Gadget - HTML/JavaScript
Note that  the Right Click  function is disabled on this blog.  The work around is two keys, Hold [Ctrl] & [C] for Copy and [Ctrl] [P] for Paste. 
<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>

1 comment:

  1. I have seen a lot people post comments of how they were scammed by some online
    fraudsters claiming to be hackers and i keep wondering maybe i got lucky with
    Wise Tech, one of the greatest hackers. He has done several jobs for
    me and not for once has he failed me. If you are here in search of a good hacker
    you should contact WiseTech on:

    Email- wisetechhacker @ gmail com OR WhatsApp +1 (424) 283 6238

    He hacks facebook,whatsapp,emails,websites,clone’s phones,Clears criminal records,
    changes school grades,bank account hack/transfer,call tracking,retrieval of lost
    documents and so many other services i can’t mention.

    ReplyDelete

Free automated link exchange - we offer free instant link exchange, latest 33 links will be placed on our main page for free.

Digital-Domination

Costa Rica