How To Disable Copying Text On Blogger


Copy_Text_From_Blogger_Site
Disable Select All Text For Sites
Today, I want my readers to know how to protect your hard work put on creating and writing new articles on your website or blog from being copied by others.

Copying the text from your site and posting it elsewhere is common on the Internet. There are sites which doesn't allow us to copy the text from the web pages. The copy function is disabled in the site by the site admin in order to protect the site. We will see how to implement the same methodology for Blogger. This trick is valid for any sites. This trick is going to disable (Ctrl+A) function for your site.


Sometimes the trick may not be compatible with some old browsers. But, we will see how to make things more secure in my future posts.




Steps to implement:

1. Go to Dashboard > Select the blog where you would like to implement the code


2. Go to Layout > Add a Gadget > Select "HTML/JavaScript gadget"


3. Paste the following code in the box:


<!-- 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 true" ); } </script>
<!-- END disable copy paste -->


4. You are done!!! Check out how it works.

Note: The above code can also be placed between <head> & </head> 

10 comments:

  1. blank

    Thanks for any other informative website. Where else could I get
    that type of information written in such an ideal manner?
    I've a mission that I'm simply now running on, and I've been on the glance out for such information.

    Here is my web page :: website Reviews

    ReplyDelete
  2. blogger_logo_round_35

    wow helped meee thank you sooooooooooo much

    ReplyDelete
  3. blogger_logo_round_35

    Grt dear, its really great help for a website/blog like me. Thnks a lot!!

    ReplyDelete
  4. blogger_logo_round_35

    Thank you so much it help me a lot

    ReplyDelete
  5. blogger_logo_round_35
  6. 2017-09-10-14-21-06-987
  7. blogger_logo_round_35
  8. tiger1_normal

    Hi,

    I used your script to stop content being copied and pasted else where and now I find that in the Firefox browser people can neither type anything to search on my blog in search bar and neither can type the content in the contact form. Can you just vist http://www.indian-share-tips.com/ and let me know that why it is happening. Your help will be greatly appreciated. Regards

    ReplyDelete
  9. blank

    Thank you for helping people.
    May god bless you.

    ReplyDelete
  10. blogger_logo_round_35

    Many Thanks! God bless you! >:D<

    ReplyDelete

Please don't spam. We hate spammers