-->

Friday, 15 June 2012

How to Disable Right Click in Blogs/WebSites


copyright-logo





Hi friends..!Protect your Articles, content, images even your posts in getting copied organic traffics due to your lot of hard-word applied in creating that post article for your worthy readers, than comes another role of content scrappers copying your articles and getting higher in search engines. Well now you can protect your articles from getting copied easily using just a small CSS trick which is really compatible in every browser and works like a charm.



So now if you wanna use this trick for making your content secure on blogger blogs, just follow the steps provided below and you will have your content protected.
Make your Blogger Content Theft Free :
1. Go to Dashboard > Layout > Add Gadget > HTML / JavaScript
2. Copy the code below and paste it in that blogger widget.

<script language=JavaScript>
<!--

//Disable right mouse click Script


var message="Content Scrappers was found!";

///////////////////////////////////
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>


3. Now just hit save the html/javascript and refresh your blog, now try to drag your content with your mouse and see 

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.
Have a happy blogging:)



No comments:

Post a Comment

Related Posts: