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.
- Login To Your Blogger Account.
- Click Blog Title → Template → Edit HTML.
- Click Proceed Button.
- Search For The Following Code Using Ctrl+F.
]]></b:skin>
- 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>
- Save Your Template.
- 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.
Comments