Sunday, 13 July 2014

Protect Your Content - Disable Right Click On Your Blog or Website

 Disable Right Click On Your Blog or Website

Disable Right Click On Your Blog or Website
Are you Sick of COPY CATS , Who copy your content Specially Images from your Blog or website and use them in there websites and blog posts ??
Do Not Worry Because I got the Perfect Solution for You.
Now You can  Disable Right Click On Your Blog or Website so that NO ONE CAN COPY any CONTENT or DOWNLOAD ANY IMAGE from your blog.

So lets get started.

1. Goto Your Blogger Dashboard and Navigate to Layout ,
2. Now Click ADD GADGET anywhere
3. Select Html/Javascript
4. Now Put the following code
<script language="JavaScript">
<!--
//Disable right mouse click Script
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>

5. Click Save and You are DONE

 Note:
This script will show Function Disabled when somebody right clicks on your blog,
If you want to change the text , Just edit the RED TEXT in above code.
Share this article
author

This Post Was Written By : Danyal

Danyal , A simple dude from Pakistan , Loves to help others , Blogs as a hobby and Always looking to help people. This Blog is also dedicated to all those who are looking for answers.

Get Free Email Updates to your Inbox!

0 comments:

Post a Comment

 
Copyright © 2014 AskDanyal - All About Internet • All Rights Reserved.
back to top