
How to Disable Right Click / Ctr+C :-
Recently I have found that some of the bloggers do not allow viewers to copy their information directly from the blog by disabling the mouse's right click function. I was also very curious on it and searched on how to do it. It is simply easy by adding the below code (orange highlighted) in the template. After trying it, I felt that my blog is not friendly at all, especially those food recipes which I want to share with others. So I decided to change back to normal.
- Open your HTML code of the Web-Page or Blog.
- Search for <head> by Ctrl+F.
- Replace <head> with below code to disable right Click or Copying on any Webpage.
<head>
<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}</script>



No comments:
Post a Comment