How to Disable Copy Paste

There three are ways to protect your blog post :

A. Put copyright on all your posts. Copyright will appear at the end of the post but can be deleted to claim as  their own

B. Disable Highlight. No highlight means short cut keys such as CRTL C and CTRL V cannot be used to copy paste.

C. Disable Right Click. The  purpose of  disabling the  mouse right click is for the people  not to be able to view source or page element.

A. How to put copyright in all of your post?

On you dashboard select layout.



 Then on layout, select add gadget and click HTML/JavaScript.



Then Add this one in the content:

<script type='text/javascript'>
function addLink() {
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = "<br/><br/> Original from: <a href='"+document.location.href+"'>"+document.location.href+"</a><br/>Copyright News Watcher Stream Online - All Rights Reserved"; // <----- You can customize this one
var copytext = selection + pagelink;
var newdiv = document.createElement('div');
newdiv.style.position='absolute';
newdiv.style.left='-99999px';
body_element.appendChild(newdiv);
newdiv.innerHTML = copytext;
selection.selectAllChildren(newdiv);
window.setTimeout(function() {
body_element.removeChild(newdiv);
},0);
}document.oncopy = addLink;
</script>

B.  Disable Highlight

Follow picture from figure one and two above.
Then Add this one in the content:

<script type="text/javascript">
var omitformtags=["input", "textarea", "select"]
function disableselect(e){
for (i = 0; i < omitformtags.length; i++)
if (omitformtags[i]==(e.target.tagName.toLowerCase()))
return;
return false
}
function reEnable(){
return true
}
function noSelect(){
if (typeof document.onselectstart!="undefined"){
document.onselectstart=new Function ("return false")
if (document.getElementsByTagName){
tags=document.getElementsByTagName('*')
for (j = 0; j < tags.length; j++){
for (i = 0; i < omitformtags.length; i++)
if (tags[j].tagName.toLowerCase()==omitformtags[i]){
tags[j].onselectstart=function(){
document.onselectstart=new Function ('return true')
}
if (tags[j].onmouseup!==null){
var mUp=tags[j].onmouseup.toString()
mUp='document.onselectstart=new Function (\'return false\');\n'+mUp.substr(mUp.indexOf('{')+2,mUp.lastIndexOf('}')-mUp.indexOf('{')-3);
tags[j].onmouseup=new Function(mUp);
}
else{
tags[j].onmouseup=function(){
document.onselectstart=new Function ('return false')
}}}}}}
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
}
window.onload=noSelect;
</script>

C. How to disable right click of user's mouse?

1. In your dashboard click template.


2. Click Backup/Restore first and download your template for back up. Then click Edit HTML




3. Click Proceed


 4. Check (Expand widget Templates)

5. Now on your keyboard press CTRL+F . Then type <body>...
Change that to this  <body oncontextmenu='return false;'>



Source: Author of  http://www.newswatcherstreamonline.info/
Tags: , , ,

About Filipino Worldwide Bloggers

(FBW) started as a Facebook group on November 1, 2011 as Filipino Bloggers Around the World. As the name implies, the purpose is to unite all Filipino Bloggers around the world.

12 comments

  1. the only sure way of protecting your content is by not posting it in the internet... just keep it in your head, no one can steal it from you that way... ;)

  2. Thanks for sharing this post. Now I know how to disable it.

  3. Cool tips, now I can disable copy paste feature on my blogs. Never thought about this before.

  4. Thanks Ma'am Tess for sharing this tips. Suki ako lagi ng mga 'magnanakaw' eh.

  5. I've been looking for this for a long time. I'll integrate this to my blog for saftey. Thank mami Tess. ^_^

  6. DO you have tutorial on WP template or can you direct me to one? Thanks, this is great.

  7. Hi Ms. Tess,

    I have the same question as Sir Rob. I have a WP and blogger accounts and I really need a tutorial for them. Hope you can make one. Pretty please. :)

  8. @special education philippines, @sir rob, WP-Copyright Protection plugin

  9. nice post. Copyright is always an issue and it's good to know how to protect your stuff.

  10. Nice post! now I'm thinking of trying it on one of my blog, but I just wanna know, is this script can slow down your site? if not then I will surely going to do it.

  11. Now I know. What a great tip. I was searching how to disable copy paste for my blog :) I'm just so grateful that I encountered this blog post.

  12. that is an awesome tip! going to my blogger account in a little while to do the trick you shared! thank you so much! :)

Leave a Reply

Related Posts Plugin for WordPress, Blogger...