Have you noticed, that some web sites do not allow their visitors using right mouse click while pointer is on the blog area. This option is useful for the site and blog owners, who want to minimize the possibilities of the content direct copying to other posts.
Right click on any internet browser is very important element and we must use it when it comes to copy or editing texts and etc. It’s very important when it comes to webmasters too. but some people may use it in a bad way, and you may want to make click right disabled on your blog. to protect you text, images links and etc.
To setup this tool in your blog Copy the Following code and paste it to your blog by adding a new page element.
Step 1 : Go to Dashboard > Layout > Add Gadget > HTML / JavaScript
Step 2 : Copy the following code and paste it there .
<script language="JavaScript">
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
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>
Step 3 : Save the html/javascript and view you blog.
When you will try to do right click, a message will tell you that “Function disabled” , and if you want to change this words” Function Disabled” Then simply find it in code and replace it.
Don't forget to drop you comment here.
If you enjoyed this post, make sure you subscribe to my RSS feed!
|
Bookmark this post:
|
|




I am Vishal Gaikar, Engineer, Web addicted.
I live in Maharastra, INDIA. 







53 comments:
First of all congratulations for your clear language in your posts and for the useful blogger tips
Regarding this post, I am afraid doing any changes in my blog because of the fear of google penalty. Have you tested this method without page rank problems?
@ Xalki
I have tested it.... You can use it without any problem dude
Superb post dude..
Can you give me the link to the post which you have posted to get the continue reading thing ?
better than best
@ Mohamad Fauzi Taslim
Thanks for comment dude
@ kaushik
will send u the link dude
this is really great
Thanxxxx Thumbs up!!
good
Thanks for your valuable comments friends :)
Thanks for providing this valuable code
This was an useful post, and easy to install as it was just adding an gadget.
thank you!
very very thanks for your best tip but text selecting with mouse courser and press ctrl+c for copy and ctrl+v for paste is become copy and paste this is negitive for copy protectect.
great!!! thanks!!!
@ Charm
U R Welcome dude
I followed the directions and added it to my blog but if you right click over an image, it says "function disabled" and then it takes you to another page with the image only displayed and you can right click the image. Did I miss something?
Is there any way of disabling the right click without any message like "function disabled" being popped up?? If there is then please let me know
Yeah dude
just remove
var message="Function Disabled!";
this line from code
Thank you, thank you, thank you!!!!!
@ Christyrenee
U R Welcome dear
Thanks, it worked for me...
Thanks dude.. it works great >:D<
It's great! Thanks Dude.
that was very nice man..Thanks.U r great.
THANK YOU! As a photographer, I was having a hard time with clients lifting photos. Love that I could do this as a gadget instead of combing through the larger chunk of code to modify. Thanks again!!
thanks for your comments friends :)
how can i disable ctrl+c function???
http://upsc-questions.blogspot.com/
THANK YOU!
thank you!!!!!!!!!!!
If you clik on the picture/photo..it opens in other window. Then the code doesn't works!
Any other way?
Thanks your code worked like a charm. Can't believe some people...
And about the photo opening up in another window. You need to remove the link from the code of each picture. I know blogger automatically puts a link to every picture so it can open up in a another window. Just take out the like and leave the image part. If you know what I am talking about...Take out the href part.
Wish I could find a way to blog Ctrl+C though...any suggestions?
Thanks for the comments friends....
@ PTC Investigation
I will send you the solution on your mail
Ok, so... I did this and it worked. But when you click the image to be larger, it will let me copy it. I have no idea what I'm doing. :/
thx^^
@ Sharon
U R Welcome dude
Thanks so so much! As a photographer this is SUCH an important feature!!
IT WORKS!!! I have been looking for something like this for a while thanks mate!!! !) :)
@ Hayley
Yeah it's true, Photographers need to protect their work from content stealer s....I am glad that it works for u :)
@ kubleo
U R Most welcome dude
Just wanted to say thank you very much! Your directions were clear and accurate, much appreciated. I'm using the html code on my photography blog. www.sherylsalisburyphotography.blogspot.com
Thanks again!
thnx very much...but after I try this trick, they can copy 'ctrl C'....then I try other trick, it's was working.....bytwy, thnx
OMG, thank you for giving such clear, easy to understand directions. It works but now I have the entire code on my sidebar...where can I add this gadget so it does not show up on my page?
Also, if you happen to know the answer to this, when I left click it takes you to my photobucket account where I downloaded the photo from.. Any help would be appreciated. Thanks again, you are awesome!!
Tried it again and everything works perfect now!! Thanks again, you are awesome!!
Nope, you can still left click and get into my photobucket account...
Fantastic code
People! DON'T DO THIS!!!
If someone wants to steal stuff from your site this won't slow them down for a second. If you want to stop them this is definitely not the way to go.
People who visit your site to steal content are in the minority.
What you will accomplish is REALLY annoying the majority of your readers.
This kind of code also screws up more stuff then you might realize.
And, again, it does nothing to protect your content it just annoys your legitimate viewers. NOTHING! BAD BLOGGERS! DON'T DO THIS!
thanx.. it works.. ;p
tq
Thanx Bro!
Everyone please check out my blog if you like new music. http://straightpiff.blogspot.com
i'd really appreciate it!
Thank you!!! Thank you!!! :)
Gr8.....working......
script.....thank u........
tq so much
Thanks, its really work and simple.........
G8 thanks! :)
Post a Comment
If you like ma post , please pass your comments here :)