How to Disable Right Click at your site / blog
Tuesday, August 26, 2008
Got pissed when you found out that someone is stealing information from your site even though they have already giving credit and link back to your site?! Now you might wondering why they're doing that?!
1. They think your site is Cool
2. Your content are so good
3. They have a thought to share and save those information in their blog/site so if the site is closed and you are no longer able to view it, then the information you stored can be viewed still even though the original author may feel unhappy with that.
4. They want to fill their blog with good post
5. They just want more activity because they don know what to do at that time
Thats the only reason why they're stealing your content even myself couldn't avoid that kind of attitude, sorry but now at least i can control it
For those who wants to prevent this kind of act, then use this javascript from GosuBlogger
In case you are unable to accessing that site, then please use this Link instead or simply follow the steps below
1. Go to your Dashboard Layout, click on Edit HTML, check the "Expand Widget Template" box and find [/body>
2. Copy and paste the following code above it
[script language='JavaScript1.2'>
//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script
//this script was not my creation so thanks to the script maker, published at http://tendou86.blogspot.com/
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
[/script>
[script language='JavaScript'>curPage=1;
document.oncontextmenu = function(){return false}
if(document.layers) {
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = function(e){
if(e.target==document)return false;
}
}
else {
document.onmousedown = function(){return false}
}[/script>
3. Save and test it, you should be unable to show menu when you right click on the site page
Attention! To make the works, please replace [ with <