Prevent your Blog Articles
Let's Do a Demo Here...!
Step 1: First of all Login to your Blogger Dashboard.
Step 2: Click on Themes section.
Step 3: Then click on Edit HTML.
Step 4: Now search for the </body> tag.
Step 5: Copy the below given JavaScript and paste it just above the </body> tag.
<script type="text/javascript">
function addLink(){
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = "<br/><br/>Article Source : <a href='"+document.location.href+"'>"+document.location.href+"</a>";
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>
Now click on Save Theme.
That's all. Now copy any content from your blog and paste it somewhere you will see the results or you can view the demo.
You can also copy any word from this article and paste it anywhere you can see the source code URL of my blog automatically pasted below there.
After completing above steps I hope you have successfully installed the script for preventing your blog from Copying. If you get any error kindly contact us.
Conclusion
This is all about making a Contact Form using Telegram Bot API. I hope you enjoy this article. Please do share this article. And if you are facing problem in any section or you have any question then ask us in .
Copyright ©