Blogger Tutorial

How to Disable Copy & Paste Function in Blogger



If you have a blogger template and work hard on publishing original content on your blog you might be interest in learning how to protect your posts from being stolen. Content being published on the web is easily copied. It is important that you protect your work and there are several tools for this. Nowadays most of the new blog writers trying to just copy the articles from website and paste it in there blog as they own it, so you must protect your articles from been copied.

Please bear in mind that this is no guarantee that your content will not be copied. Someone with a little bit of experience may be able to bypass this JavaScript. But at least you are not making it so easy for them.

Here is a simple trick to avoid copied. It is just simple java script function which disable highlighting text content and it is very simple to add it to your blog or website. Here we go :

For Blogs

Log into your Blog Dashboard -> Template -> Click on Edit HTML

-> Then use Ctrl + F and search for "<head>" tag

-> Paste bellow code right after "<head>" tag

<!--Avoid Copying Script starts by sharetoworld.com-->
<script type="text/javascript">
var omitformtags=[&quot;input&quot;, &quot;textarea&quot;, &quot;select&quot;]
omitformtags=omitformtags.join(&quot;|&quot;)
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!=&quot;undefined&quot;)
document.onselectstart=new Function (&quot;return false&quot;)
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
<!--Strick Copying Script ends by sharetoworld.com-->

 Save your template and now you are done.

For Websites

Go to page what you need to avoid copied.
Then use Ctrl + F and search for "<head>" tag 

<!--Avoid Copying Script starts by sharetoworld.com-->
<script type="text/javascript">
var omitformtags=[&quot;input&quot;, &quot;textarea&quot;, &quot;select&quot;]
omitformtags=omitformtags.join(&quot;|&quot;)
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!=&quot;undefined&quot;)
document.onselectstart=new Function (&quot;return false&quot;)
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
<!--Strick Copying Script ends by sharetoworld.com-->

Save your file and now you are done.

Don't forget to share this awesome trip to your friends by clicking these sharing buttons below .


0 comments:

Post a Comment

Powered by Blogger.