How to Stop Copy & Paste

Creating original content for the Internet can be time-consuming. People often spend hours designing a picture, writing an article or publishing some other piece of web art onto their website. Even though their work is copyright protected, some people will still copy their work. Although it is difficult to stop a dedicated hacker from stealing work from your website, you can disable the copy-and-paste function most people use to steal content.

Instructions

    • 1

      Open your website’s HTML coding in either a basic word processor such as Notepad or a dedicated HTML code writer such as Dreamweaver.

    • 2

      After the heading tag “<head>” (ignore the quotations), insert the following script:<br /><script language="JavaScript"> // distributed by http://hypergurl.com <!-- var popup="Sorry, right-click is disabled.\\n\\nThis Site is Copyright ©2010"; function noway(go) { if (document.all) { if (event.button == 2) { alert(popup); return false; } } if (document.layers) { if (go.which == 3) { alert(popup); return false; } } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=noway; // --> </script>

    • 3

      Save your HTML code file and open it into your browser. Right-click on an image. A message will pop up, saying, “Sorry, right-click is disabled. This site is copyright 2010.”

    • 4

      Prevent copy-and-paste being used anywhere on your website by inserting the following coding into your heading tag: <br /><script language=\"JavaScript1.1\"> // distributed by http://www,hypergurl.com <!-- var debug = true; function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which <br />== 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' &&(event.button == 2 || event.button == 3)) { alert('This Page is fully protected!'); return false; } return true; } document.onmousedown=right; if (document.layers) window.captureEvent(Event.MOUSEDOWN); window.onmousedown=right; //--></script>

    • 5

      Save your HTML coding and open it into your browser. If you right-click anywhere on your site, nothing will happen.

Tips & Warnings

  • Before making any changes to your original website coding, back the file up. <br />These codes will not prevent everyone from stealing your content, but they will stop people from being able to copy and paste your work with ease.

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured