How to Add Credit Link to Copied Content
Updated on 16 May
Copying some one content from internet is very easy and it's very common most of the people does not write content for their websites they simply copy the content from other websites and posted to their sites.
Technically it is submitted and is allowed by copyright law that if anyone copy content from your website he of she has to edit credit link to that but people didn't do that they just copy and publish the content without informing the author and without adding credits links.
Sometimes they do not follow copyrights law. In today's tutorial I am going to tell you the method or going to provide you a script you have to use this script in your blogger blog or on any other platform and this will help you to maintain your copyright protection law.
Basically this script will add a Credit link if someone copies any content from your website.
If you want to add credit links to the content if someone copies from your website you have to follow the steps which are provided below.
You can paste this script into your website where you can edit your template whether it is on wordpress or in blogger but as you know that I am a blogger user so that I am going to tell you in blogger how you can add this functionality.
Steps to Make this in work:
- Go To Blogger Dashboard
- Then go to Theme / Template
- Click Edit HTML Button
- Now search for </head>
- Now copy any one code provided below and paste it just above the code we searched in step 4. Version 1:
- Save Theme / Template
To Search anything in blogger Press Ctrl + F and type or paste the term to search in search bar.
//<![CDATA[
function nocopas(){var e=window.getSelection();
pagelink="Read more :"+document.location.href,copytext=e+pagelink,newdiv=document.createElement("div"),newdiv.style.position="absolute",newdiv.style.left="-99999px",document.body.appendChild(newdiv),newdiv.innerHTML=copytext,e.selectAllChildren(newdiv),window.setTimeout(function(){document.body.removeChild(newdiv)},100)}document.addEventListener("copy",nocopas);
//]]>
Version 2: //<![CDATA[
!function(e,n){var t,o,a,r,i,d,c="getSelection",l="removeAllRanges",s="addRange",f="parentNode",g="appendChild",u="test";e[c]&&n.addEventListener("copy",function(m){for(o=m.target;3===o.nodeType;)o=o[f];if(r=n.createElement("div"),(t=e[c]())&&t.rangeCount&&(t=t.getRangeAt(0))&&(a=t.cloneRange(),t=t.cloneContents())){for(;i=t.firstChild;)r[g](i);if(!/^(pre|code)$/i[u](o.nodeName||"")&&!/(^|\s)no-attribution(\s|$)/i[u](o.className||"")){var p=e.location.href;r.innerHTML+="<br><br>©"+n.title+'<br >Source:<a href="'+p+'">'+p+"</a>"}d=n.createRange(),n.body[g](r),d.selectNodeContents(r),(t=e[c]())[l](),t[s](d),setTimeout(function(){r[f].removeChild(r),t[l](),t[s](a)})}},!1)}(window,document);
//]]>
you are all done you have added this functionality in blogger that how to add credit linked to copied content.
After adding the script to your website or blog when someone copy anything from your website you website link will be added to the selected content.
0 comments for How to Add Credit Link to Copied Content