How to Disable Copy Paste In Blogger for protect your blog content. - The WonderSpot

Home Top Ad

Post Top Ad

Latest Posts

Tuesday, February 27, 2018

How to Disable Copy Paste In Blogger for protect your blog content.

Disable Copy Paste In Blogger

How to Disable Copy Paste In Blogger for protect your blog content.
Are you looking for how to disable copy paste in blogger,Then this post for you.
When you are blogging or web writing commonly in internet, stealing of your web or blog detail can be a serious problem. To prevent from that issue, just follow the below simple steps to disable copying option on your blogger blog.

For prevent Copy & Paste from your Blogger Blog that we can follow three methods as below. Then let see
how to disable copy paste in blogger?

Method 01.
Using HTML/Java Script gadget.

1.      Log in to Blogger Account 

2.      Then click on Blogger Dashboard 

3.      Then click on layout 

4.      Click on Add a Gadget

5.      Then, Select & add HTML/Java Script in below.

6.      Now Copy the Given Below Code and Paste it there.

How to Disable Copy Paste In Blogger Blog?



<!- START disable copy paste --><script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></script><script type='text/javascript'> if(typeof document.onselectstart!="undefined" ) {document.onselectstart=new Function ("return false" ); } else{document.onmousedown=new Function ("return false" );document.onmouseup=new Function ("return false"); } </script><!-- End disable copy paste -->
                      7.     Now Save the open window you are almost done.



Method 02.
Using JavaScript To Disable Copy Paste In Blogger

  1.       Sign in blogger
  2.       Click on Dashboard
  3.       Then go to Template section
  4.       Now click on “Edit HTML”.
  5.       In the HTML editor window, Find the line <head> copy & paste below that code <head>.
<script language='JavaScript1.2'> function disableselect(e){ return false } function reEnable(){ return true } //if IE4+ document.onselectstart=new Function (&quot;return false&quot;) //if NS6 if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } </script>

        6.      Then save the template.


 
Method 03.
Using CSS To Disable Copy Paste In Blogger 

If you don’t use java script, you can do that task by using css code.

  1.     Sign in blogger
  2.      Click on Dashboard
  3.     Then go to Template section
  4.      Now click on “Edit HTML”.
  5.     Find the ending CSS “]]></b:skin>” except “<head>.
  6.      Copy and paste the following code before “]]></b:skin>”

body {
user-select: none !important;
-moz-user-select: -moz-none !important;
-webkit-user-select: none !important;
-ms-user-select: none !important;
}

Above CSS code will  disable copying everything of your blog. That will help you to protect your blog content.
But below code will allow user to copy the text inside “blockquote, Pre and Code” HTML tag. If you share code on your blog and let user copy only that piece of content, you can simply copy the above entire code.

.post-body blockquote, .post-body pre, .post-body code {
user-select: text !important;
-webkit-user-select: text !important;
-ms-user-select: text !important;
-moz-user-select: text !important;
}


You have done that task successfully with this simple code. If you wish to disable this, then simply delete the code from where you have place it.
Then i think you have a better idea about how to disable copy paste in blogger.

No comments:

Post a Comment

Thank you for visit us.
Give your feedback. Don't worry. Your email is safe with us.
Subscribe us to get latest news letters for your inbox.

Post Top Ad

Your Ad Spot