BloggerHero - Blogger Tuts, SEO, Themes, Gadgets
Inspired by Material Design

How to Prevent Your Blog Content from Getting Copied

Leave a Comment

How to Prevent Your Blog Content from Getting Copied
Do you want to protect your blog contents from getting copied ? Well, then you are at right place !

You can easily protect your blog posts, articles from getting copy - pasted by disabling right click on your blog. No right click = No copying !

As We know many Beginner Bloggers try to increase their Blog Posts by copying articles from other sites or blogs. This is really riddiculas for those who write there original blog posts and it really takes too much time to write a single post, I usually spent 1-1.30 hour for a single post on my blog.

So, Whats the Trick?
The trick is totally simple, you just have to add 1 simple script to your blog !

Try Out Yourself , Just follow these Simple Steps :
1. Go to Blogger > Dashboard > Layout.
2. Click Add Gadget > Select "HTML/Java Script"
3. Copy the following code and paste it in your blog.
<!--Disable Copy And Paste-->
<script language='JavaScript1.2'>
function disableselectundefinede){
return false
}
function reEnableundefined){
return true
}
document.onselectstart=new Function undefined"return false")
if undefinedwindow.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<div style='position: fixed; bottom: 2%; left: 2%;'>
<div class='shareEgg' id='shareThisShareEgg'/>
</div>
<a href="http://techethix.blogspot.com">Blogger Tricks</a>
4. Now Go to Blogger > Template > Edit HTML.
5. Find the code </head> 
6. After Finding </head> copy the following code just above it.
<script type='text/javascript'>
function addLinkundefined) {
    var body_element = document.getElementsByTagNameundefined'body')[0];
    var selection;
    selection = window.getSelectionundefined);
    var pagelink = "<br/><br/> Original from: <a href='"+document.location.href+"'>"+document.location.href+"</a><br/>Copyright EXEIdeas - All Rights Reserved"; // change this if you want
    var copytext = selection + pagelink;
    var newdiv = document.createElementundefined'div');
    newdiv.style.position='absolute';
    newdiv.style.left='-99999px';
    body_element.appendChildundefinednewdiv);
    newdiv.innerHTML = copytext;
    selection.selectAllChildrenundefinednewdiv);
    window.setTimeoutundefinedfunctionundefined) {
        body_element.removeChildundefinednewdiv);
    },0);
}document.oncopy = addLink;
</script>
7. Click Save, That's It you are done Now !
Go to your blog, Click Right Click , You will See there will not be any right click working !
Hope you would find above tutorial helpful, din't forget to Subscribe Us via Email and You can share this post with your friends ! Add Our Badge as Reputation !
Want More Fun? Try TechEthix

0 comments :

Post a Comment

Powered by Blogger.