How To Disable Right Click in Blogger(Disable right mouse click Script): Do you want to protect your Blog posts to be copied?.Do you want your posts be unique and no one can't to copy your blog contents.The Optimum solution is to prevent others to copy your posts.and to disable right click on Blogger blogs. so that even if user select the text, they can't to copy it. because the right click will not work and also CTRL+C.
However if you are providing services for the Bloggers and users by giving them codes such as widgets,plugins. then it will be the drawback. however you can also get rid of this problem. then there is another method that you can use which allow users to copy codes just by pressing a javascript button.
How To Disable users to copy your posts?:
The Best way is to Disable right click on your blogs.
Follow the Below Steps To implement this technique on Your Blogger Blogspot Blog:
Step-1: Go Your Blogger Dashboard Select A Blog.
Step-2: Go to Layout of your Blog and Add A Gadget Select HTML/JAVASCRIPT
Step-3: Now Copy Below code and Paste.
Finally Save it and You are Done!
Now try to select some text in your Blog and you will see that right click does not works.
When you right click this message will Pop "function disabled".
Now if you want to change this text then change the text in above codes.
This Line : var message="Function Disabled!";
However if you are providing services for the Bloggers and users by giving them codes such as widgets,plugins. then it will be the drawback. however you can also get rid of this problem. then there is another method that you can use which allow users to copy codes just by pressing a javascript button.
How To Disable users to copy your posts?:
The Best way is to Disable right click on your blogs.
Follow the Below Steps To implement this technique on Your Blogger Blogspot Blog:
Step-1: Go Your Blogger Dashboard Select A Blog.
Step-2: Go to Layout of your Blog and Add A Gadget Select HTML/JAVASCRIPT
Step-3: Now Copy Below code and Paste.
<script language=javascript>
<!--
//Disable right mouse click Script
//By TrixKing Blog
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>
Finally Save it and You are Done!
Now try to select some text in your Blog and you will see that right click does not works.
When you right click this message will Pop "function disabled".
Now if you want to change this text then change the text in above codes.
This Line : var message="Function Disabled!";
Superb post........ Thanks Kamran bro....... keep it up..... :)
ReplyDeleteMy Pleasure. Thanks to you for commenting.
ReplyDeletevery nice tutorial. i was thinking that how to prevent my posts. because some bloggers was copying it. and with your tutorial now my post are unique.
ReplyDeleteThanks a lot
i like you site dear kamran khan it will help me to protect my blogger contents
ReplyDeleteThanks anonymous: Thanks for liking TrixKing Blog. yes indeed. it help you to some extent. because when you Disable it on your Blogspot Blog. then newbies cannot to copy your posts and others things. and then good rank in Google and quality contents.and more chances for your post to be at the top in search results page(serps).
ReplyDeleteKeep visiting
Thanks for the hot tip! I implemented the code right away on my blog and changed the message, which will hit the point hard to content thieves.
ReplyDeleteYou Most Welcome! that's cool
ReplyDeletesupeeeeeeeeeeeeerrrrrrr bosssss
ReplyDeletewww.studentpond.blogspot.com
Bro How Can I Disable right Click on Selected pages/posts in Blogger?
ReplyDeleteSoftronicinfo
good Question: i think if you include the script inside blog post,
ReplyDeleteunder HTML Tab, it may work.