I have recently started using Blogger to write blogs.

I wanted to make my text non clickable in Blogger so nobody can copy that material from my blog.

I add the material using a Compose button. Its more or less similar to writing in Microsoft Word. Blogger automatically generate HTML code of it.

I think that their should be a script that i should insert in the html code that will make my code non clickable. But I don't know much about html. What should i do to achieve this task?

enter data just like in word

2 Answers 2


I used this code to disable the right mouse click & text non-highlightable.

In Blogger Go to Layout>>> Add a Gadget >> Select HTML/JavaScriptAdd

Then paste a code in it.

<script language='JavaScript'>
function disableselect(e){
return false
function reEnable(){
return true
document.onselectstart=new Function ("return false")
if (window.sidebar){


//Disable right mouse click Script
//Disable right click script Mix By Divyang Patel Notice: Don't Remove the Credit 
var message="Function Disabled!";

function clickIE4(){
if (event.button==2){
return false;

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
//Disable right click script Mix By Divyang Patel Notice: Don't Remove the Credit 
if (document.layers){
else if (document.all&&!document.getElementById){

document.oncontextmenu=new Function("alert(message);return false")
<!--Code End Mix By Divyang Patel>

But This create some problems in the page like disable some gadgets that run on java script.

  • You do realize that all this will do in most cases is annoy people who might have a legitimate want to select or copy the text? It's otherwise academic to "view source" or turn off JavaScript and get the content that way.
    – ale
    Commented Sep 10, 2016 at 20:34
  • Yup. Right. Does their is anothe way other than JavaScript . that is fool proof? Commented Sep 11, 2016 at 12:58
  • Not and also have the content online and presentable by a browser.
    – ale
    Commented Sep 11, 2016 at 13:03

This is not something which Blogger automatically supports.

But you can add CSS (Template > Customize > Advanced > CSS) which will do this, and then apply the relevant style in the post-editor's Edit HTML mode.

See this question for information about the CSS to use: https://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting-using-css

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.