Disable Right-Click / Copying on Blogs / Websites

For Web Developers its a big challenge to protect their data and information on the websites/blogs etc. As having Copyrights is not enough to save the information from being copied. To make the information on blogs and websites web Developers have to make some changes in their Coding/Programming so that Copying the data can be avoided.

Most users Copy information from blogs or websites by Ctrl+C or by Right Click -->> Copy. Now this can be disable by Web-developers to avoid data copying.

How to Disable Right Click / Ctr+C :-
  • 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 (&quot;return false&quot;)
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
  • Save your HTML Code.
  • Right Click on your Page has been Disabled.
That's all done.

0 Response to "Disable Right-Click / Copying on Blogs / Websites"

Post a Comment