Tuesday, March 5, 2019

How to Disable Copying Text On Blogger Blogs

How to Disable Copying Text On Blogger Blogs

Copying the writing from your website and placing it elsewhere is common on the net. There are sites which often doesn’t make it possible for us to copy the content on the web pages. The content function is disabled from the site through the site admin so that you can protect the website. We might find how to implement the identical methodology pertaining to Blogger. This key is valid for almost any sites. This trick will probably disable (Ctrl+A) function to 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 to Blogger (Disable Copying Text):

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”

code


<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>


0 Comments: