How To Disable Copying Text In Blogger

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.
Disabling the text selection on your blog can reduce the chance of your content being copied on other blogs to 80%. Below is a short & simple JavaScript code snippet you have to add in your Blogger template to disable text selection.
To add the script to your template, go to the Template section in your blog dashboard, and click the Edit HTML button to edit the template. Now, look for </head> tag, and paste the following code just above it, and save the template:
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: 
<script type="text/javascript"> var omitformtags=["input", "textarea", "select"] omitformtags=omitformtags.join("|") function disableselect(e){ if (omitformtags.indexOf( return false } function reEnable(){ return true } if (typeof document.onselectstart!="undefined") document.onselectstart=new Function ("return false") else{ document.onmousedown=disableselect document.onmouseup=reEnable } </script>

4. After pasting the given code click on save ..  Check out how it works.

Related Posts
« Prev Post


22 September 2015 at 03:59

An innovative and interesting information about Disable Text Content on own website, thanks for shared. Thumb's up.. :)