If you are worried about your content on your blog/website
and don't want it to be copied by others then given JavaScript code snippet can help you. This
code simply disables the Right
Well
there are many another ways to copy content as you can see on my website I had
also applied this script earlier which disables the right click on website but
recently I just removed this script as many people were having problems.
So
you can check out the steps below for disabling right click on Blogger Blogs
and protecting your content from being copied.
How to Disable
Right Click on Blogger?
STEP #1: Log on to Blogger
STEP #2: Go to Dashboard>Template
STEP #3: Click on Edit HTML>Proceed
STEP #4: Tick on Expand Widget Template check box
STEP #5: Find (Ctrl + f) below code
</body>
STEP #6: Now copy and paste below Code just above it.
<script
language=javascript>
<!--
<!--
var message="Function Disabled!";
function clickIE()
{
if (document.all) {
(message);return false;}
}
{
if (document.all) {
(message);return false;}
}
function clickNS(e)
{
if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}
}
{
if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{
document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{
document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
</script>
STEP #7: Save your template and you are done!
Customization:
- When you will try to do right click, a message will tell you that “Function disabled!”, and if you want to change these words then simply find it in code and replace it.
{ 0 comments... read them below or add one }
Post a Comment