Disable Copy Paste In Blogger To Protect Blog Posts


Why We Have To Disable Copy Paste In Blogger Posts?
If the copy paste function is enabled in your blogger blog posts, Others can copy and paste it on their own blog .To prevent copy and paste your content from others you have to disable copy and paste function in your blog or website.
Yes it will work on both blogger website and worldpress too. 

How to Disable Copy Paste In Blogger Posts?

Ok, We seen that why copy and paste function is to be disabled.
There are two methods you can used to protect your content from others.
Without wasting time lets start .....

Method 1: Using JavaScript To Disable Copy Paste In Blogger

1. Sign into your blogger account and go to the Blogger “Dashboard”.
2. From the left side click on the “Template” section and then click on “Edit HTML”.

3. In the HTML editor window, Find the line “<head>.”
protect-blog-content2
4. Now paste the following code right below the line.
protect-blog-content3
<script language='JavaScript1.2'> function disableselect(e){ return false } function reEnable(){ return true } //if IE4+ document.onselectstart=new Function (&quot;return false&quot;) //if NS6 if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } </script>
5. Click on the “Save Template” button and you are done. Go to your blog home page. Reload the page and then try to copy your content to make sure the code is working.

Method 2: Using CSS To Disable Copy Paste In Blogger

If you don’t want to use JavaScript, here is another impressive solution for you to disable copy paste in blogger. Actually, you can use a small piece of CSS code too to do the same task.
1. Follow the above steps 1, 2 and 3.  and find the ending CSS below
]]></b:skin>
2. Now copy the following CSS code and paste it right above the 
]]></b:skin>”. Code

body {
user-select: none !important;
-moz-user-select: -moz-none !important;
-webkit-user-select: none !important;
-ms-user-select: none !important;
}
.post-body blockquote, .post-body pre, .post-body code {
user-select: text !important;
-webkit-user-select: text !important;
-ms-user-select: text !important;
-moz-user-select: text !important;
}
Configuration: The first part of the above CSS code will disable copying everything of your blog. The second part will allow user to copy the text inside “blockquote, Pre and Code” HTML tag. If you share code on your blog and let user copy only that piece of content, you can simply copy the above entire code. Otherwise, copy only the CSS Block named “body{……}” and implement in your blog to protect everything.

1 Response to "Disable Copy Paste In Blogger To Protect Blog Posts"

  1. https://patendo.com/cara-membuat-merek/ Awesome and interesting article. Great things you've always shared with us. Thanks. Just continue composing this kind of post.

    ReplyDelete

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel