How To Restrict Users To Copy Content From Your Blog

In this tutorial you will learn how to restrict users to copy only selected content From your blog. Example: you have a blog related to blogger tutorials like TecheHow. you don”t want content stealers to copy your articles and on other side allow readers to copy certain text/codes. Then follow the steps below.

  1. Login To Your Blogger Account.
  2. Click Blog Title → Template → Edit HTML.
  3. Click Proceed Button.
  4. Search For The Following Code Using Ctrl+F.

]]></b:skin>

  1. Replace The Above Code With The Code Below.

body{
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select:  none;
-o-user-select:  none;
user-select:  none;
}
blockquote{
-webkit-user-select: text;
-moz-user-select:  text;
-ms-user-select:  text;
-o-user-select:  text;
user-select:  text;
}
]]></b:skin>

  1. Save Your Template.
  2. You Are Done.

In this code first we disable selection for whole body content. After that we allow selection for text in blockquote tags. You can also reply body and blockquote tags in above code with tags other tags. you can also check demo on this page itself.

Update: This Code Works On Chrome And Firefox Only.

Post Tags
Osho Garg

About Author
Osho is Tech blogger. He contributes to the Blogging, Gadgets, Social Media and Tech News section on TecheHow.

Comments