How to protect your blogger's Page content and none blogger users content not to copy by thefts

User avatar
Diy
Admin
Admin
Contact:
Location: Philippines
Posts: 185
Joined: Sat Apr 23, 2016 10:32 pm

How to protect your blogger's Page content and none blogger users content not to copy by thefts

Sat Nov 04, 2017 3:21 pm

Steps to implement to Blogger (Disable Copying Text):
1. Go to Dashboard > Select the blog where you would like to implement the code

2. Go to Layout > Add a Gadget > Select “HTML/JavaScript gadget”

3. Paste the following code in the box:

Code: Select all

<script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></script>
<script type='text/javascript'>
if (typeof document.onselectstart!="undefined" ) {
  document.onselectstart=new Function ("return false" );
} else {
  document.onmousedown=new Function ("return false" ); document.onmouseup=new Function ("return true" );
}
</script>
Not only in Bloggers though, for those JQuery fans used this

Code: Select all

// With jQuery
$(document).on({
    "contextmenu": function(e) {
        console.log("ctx menu button:", e.which); 

        // Stop the context menu
        e.preventDefault();
    },
    "mousedown": function(e) { 
        console.log("normal mouse down:", e.which); 
    },
    "mouseup": function(e) { 
        console.log("normal mouse up:", e.which); 
    }
});
or
This

Code: Select all

 $(function() {
        $(this).bind("contextmenu", function(e) {
            e.preventDefault();
        });
    }); 
By Javascript:

Code: Select all


Put this code into your <head> tag of your page.

<script type="text/javascript"> 
function disableselect(e){  
return false  
}  

function reEnable(){  
return true  
}  

//if IE4+  
document.onselectstart=new Function ("return false")  
document.oncontextmenu=new Function ("return false")  
//if NS6  
if (window.sidebar){  
document.onmousedown=disableselect  
document.onclick=reEnable  
}
</script>
This will disable right click on your whole web page, but only when JavaScript is enabled.


User avatar
Princess Anna
Posts: 23
Joined: Fri Feb 03, 2017 2:40 pm

Re: How to protect your blogger's Page content and none blogger users content not to copy by thefts

Sat Sep 15, 2018 7:09 am

Additional to this, we found out that by adding this to the body of your content... thefts will make at least hard to copy the text of your website. We understand that copying contents are everywhere...

Anyway, below is the text you can add to your php file or html file... just find the opening of the <body > and add this text..
<body oncopy="return false" onpaste="return false" oncut="return false">

[your contents here............]

</body>
I hope this info helps you guys. its work for my blog so give it a try. Thanks

Return to “WEBSITE AND WEB DESIGN”

Links

In total there are 15 users online :: 1 registered, 0 hidden and 14 guests
Registered users: Bing [Bot]
Most users ever online was 156 on Sun Jun 17, 2018 7:42 am
Total posts 439
Total topics 318
Total members 62
Our newest member anonymous-kali
No birthdays today