Menu
show-notice
hide-notice

Show Copyright When Someone Hack Your Article

on 8 November 2011

In this post we going to show you, how to show copyright when someone hack your article. This mean by when someone copy paste your blog article, then it will automatically show copyright and link source of that article. So you can prevent those who are copying your article. Some idiots are simply copy paste on their blog even they are not reading article, also hacker will be irritating to copy paste your blog article. This trick work only on blogger.

How To Add this trick to your blog

1. Log in to your blogger dashboard by clicking here.
2. Go to Design > Edit HTML.
3. Copy the below code and paste before </head>.

<script type='text/javascript'>
function addLink() {
    var body_element = document.getElementsByTagName('body')[0];
    var selection;
    selection = window.getSelection();
    var pagelink = "<br/><br/> Original from: <a href='"+document.location.href+"'>"+document.location.href+"</a><br/>Copyright Onlinetrick - All Rights Reserved"; // change this if you want
    var copytext = selection + pagelink;
    var newdiv = document.createElement('div');
    newdiv.style.position='absolute';
    newdiv.style.left='-99999px';
    body_element.appendChild(newdiv);
    newdiv.innerHTML = copytext;
    selection.selectAllChildren(newdiv);
    window.setTimeout(function() {
        body_element.removeChild(newdiv);
    },0);
}document.oncopy = addLink;
</script>
You can change Copyright Onlinetrick - All Rights Reserved with your words and Save it
Share and Enjoy!

SHARE

7 comments:

Important -Comments with Links will be deleted immediately upon our review and If you are asking a question click the 'Subscribe By Mail' link below the comment form to be notified of replies.