Today a lot of us are getting worried of copy and paste users who pop up on our blog copy articles and run away without giving credits to us for copying our articles, with this tutorial I will teach you how to block text selection on blogger so as to reduce copying of contents easily from your Blogspot blog.

How to disable text selection in blogger for copy and paste

  1. Login to blogger.
  2. Navigate to theme right sidebar options.
  3. Click on Edit HTML.
  4. Click anywhere in the code and press Ctrl+F
  5. When the search dialogue appears, find the code – ]]></b:skin> .

 

The codes below are allowing readers to copy the important codes on a blog while disallowing them to copy all the text. The codes below are important for those bloggers who are having a tutorial niche like this blog.

.post blockquote{-moz-user-select: text;-webkit-user-select: text;-ms-user-select: text;user-select: text;}
.post code {-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}
body {-webkit-user-select: none; -moz-user-select: -moz-none; -ms-user-select: none; user-select: none;}

Note: If it’s not necessary for you to allow your audience copying some of your text you may put only the codes below.

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

Disable Text Selection Using JavaScript

I will not recommend using JavaScript to disable the text selection on your blogger blog. Why? I have two reasons why we should not use JavaScript. First, JavaScript can slow down the load of our blogger blog on browsers. Second, JavaScript is useless when your readers disable the JavaScript on his browser.

Note: The codes given below will automatically disable text selection including the Blockquotes and Codes.

Implementing on your blogger blog:

  1. Go to your blogger dashboard
  2. Click Layout button
  3. Click Add a Gadget
  4. Select HTML/JavaScript
  5. Paste the codes given below

<script type=”text/javascript”>
//form tags to omit in NS6+:
var omitformtags=[“input”, “textarea”, “select”] omitformtags=omitformtags.join(“|”)
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
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>

Join our Active Telegram Group chat for discussions and updates
Join Now
This Post was Last updated on February 27th, 2019, we update our content constantly to give you the best.
Note: We don't support duplicate content, this material and other digital content on this website may not be reproduced, published, broadcast, rewritten or redistributed in whole or in part without prior express written permission from Deegeek Nigeria. All content are protected by the Digital Millemium Copyright Act 1996 (DCMA)