2009/04/13

Disable right click on blogger

Hi everyone , today I will bring you a tip about disable right click on blogspot.
Why should we use this ? Some bloggers do not want their images to be copied to another blog/website.
So this widget can help you to disable right click and everybody can not use right click on your blog to view image, save image...

You just have to add this code to your blog by going to Layout--->Add a Gadget--->HTML/Javascript:

<script language="JavaScript">
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.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>


Finish! now Save and don't worry about your images!
If you wanna know how to disable highlight text for blogspot, just like this tip , click here to view.

If you have any problems please leave a comment , thank you!

7 comments:

Anon Emous said...

Well, it is a good idea in theory.. but has some drawbacks. Yes, I agree, it prevents a user from right-clicking on an image, but it also does more damage. I myself, like to use right-click on links, so that I have the option of opening the link in a new window or tab: with this script, you cannot do this.

Furthermore, it really does not protect an image in Blogger.. anyone can do a simple screen capture of the image. Furthermore, if the image was loaded into the Blogger image farm, the user just needs to click on the image to view the full size, and can right-click on it there to save the image, since your script is not active when the image is displayed from the image farm.

Anon Emous said...

Again, a good idea, but not practical. Anyone who really wants to copy text from your site has only to view the page source, and copy it from there.

Alternatively, a screen capture or partial screen capture will grab the text, however, it will be in image format, not text - but nonetheless, it can be copied.

Besides, there are lots of tools out there to suck down your entire site (every page, image, and media file) to a user's computer. Example: HTTrack ( http://www.httrack.com/ )

There is nothing safe on the net.

vuluganck said...

Yes , you are right !
I have thought about it.
But my friend , this is a tip that many people are in trouble , and I just want to help them a little bit .
Of course you are a pro webmaster so you will realize the defects of these tips.
And one more , this tip may prevent from copying image, text from some blogger newbies.

Any way , thank you for your ideas very much and hope you will visit my site regularly.
Thank you

Daisy said...

I think this is very helpful, there are a lot of people out there that will right click and don't really know another way. Yes if someone REALLY wants your photos they will take them, but I think this does deter some people!

PS: I do not like those darn ads on your site that keep popping up and interupting my comment typing. FYI.

michelle said...

Very helpful! Thumbs up.

Nisa-mom said...

thank you for sharing the tips! its really help..

Anonymous said...

thanks!!tis is awesome but can i only prevent ppl from copy my link address by Right-Click??coz if totally 'no' right click its also can giv me a prob..well..if u dont mind can help me solve tis prob?TQ

Post a Comment

Thanks for reading , if you have any problem please leave me a comment here I will help you by my best.Please note that you put the friendly words tohelp each other to improving and developing these tips to be better,or the best way for you to track my blog is subscribing my Feed.You are always welcome on Zenplate.
Best regard
Zen

 
.